The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

-2
votes
0answers
9 views

i want to add a class 'page-scroll' to subscription menu.and rest of menus have a class 'wobble-bottom' in wp_nav_menu,how to do this? [on hold]

<ul> <li><a href="#" title="">Home</a></li> <li><a href="#" title="">About</a></li> <li><a class="page-scroll" ...
0
votes
0answers
17 views

How to manually change current date to post date in frontend?

Well I want to know how the viewer on my website can change the wordpress current date to the post date (preferable from the dropdown as Day and Month). So if today's wordpress date is 22 December, ...
0
votes
2answers
28 views

Show different website layout if no sidebar added

I have a question about website layout with and without wp widges in sidebar. Here is the code i have for my registered sidebar. <?php if ( !function_exists('dynamic_sidebar') || ...
0
votes
1answer
18 views

Load php function with AJAX on modal window

On a movie information wordpress theme i am developing, i have an href with text "watch trailer" on each cover of all movies. This brings a modal window, and that is working already, but i want to ...
-1
votes
0answers
13 views

Replace iframe with php for implementing common header/footer

I have a multisite WP and have utilized iframe for common headers and footers. But when pages load on other sites than main there is a delay in loading header and footer. Here is the code I have in ...
3
votes
1answer
29 views

Walker class: Problems with understanding how walk() method can be called without error

I am struggling with understanding how WordPress uses the Walker class. In particular, I don't understand the walk() method (I think). First, let me explain what I understood: When calling ...
1
vote
1answer
39 views

Why use %d in php when in function

$mid = $wpdb->get_col( $wpdb->prepare("SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s", $post_id, $meta_key) ); Can any body tell me why we are using %d and %s ? ...
-1
votes
0answers
7 views

Create an order in WooCommerce using S2Members API and wc_create_order [on hold]

I'm trying to use S2Members 'Payment Notification API' to create an order in WooCommerce when a payment is processed. I'm going to be batch shipping my product once a month to all members who've paid ...
0
votes
1answer
18 views

how to add number value in front for variable [on hold]

Hi there my question is very simple, is there a way by which we can add a value in the end of the variable a numeric value. like we have a variable $tota $tota1 $tota2 $tota3 each have different ...
1
vote
0answers
28 views

Add / Update Custom Fields After Select Pictures in Media Window

I just added a button called Add Slider in Add/Edit Post Page. Here's my code in my functions.php : //Add button to create slider add_action('media_buttons','add_my_media_button',15); function ...
0
votes
0answers
13 views

Global Signup/Login in two wordpress site some like similar to stackoverflow?

I have two different wordpress installation at two different server one at mydomain.com and other at subdomain.mydomain.com having different database. My question is how I implement global ...
0
votes
0answers
6 views

RSS Error: WP HTTP Error: Could not resolve host: planet.wordpress.org; & all amazon plugins are down

installed wp verson 4-1 rc (release candidate) On my admin dashboard i have noticed that the feeds (other wordpres news, wordpress development blog, and incoming links) are no longer working. ...
0
votes
0answers
5 views

Uploading high ress images: image data does not exist

I have a reason to let users upload High Ress images. My hostingcompany doesn't allow me to upload more then 8MB. To be able to upload more MB's I did the following: I created a php.ini file and ...
0
votes
1answer
21 views

Add bcc to contact from on wordpress

I found a script for making your own contact form in your wordpress site (without plugin) Now, I want to add more clients email accounts as a BCC or CC. how can I do that? This is me code which ...
0
votes
1answer
17 views

Use custom get results query to show posts WordPress

I have this code before to show posts. $query_args = array( 'post_type' => 'post', 'posts_per_page' => 4, 'meta_key' => 'Views', ...
0
votes
0answers
39 views

How to create WordPress plugins that are closed source? [closed]

How would someone go about making a WordPress plugin closed source when at the same time the person has to download all the .php scripts to install.
0
votes
0answers
21 views

Should I store multiple data in a single wp_post field

I hope this is the right place to ask this question. I have chosen to work in a Wordpress environment so this should apply here. I have to design an application that will store hundreds of thousands ...
1
vote
2answers
30 views

Password protecting content in custom template

I'm trying to password protect content in a custom page template, however when i enter the password i assigned in the backend, it doesn't authenticate, instead just reloads the page upon submission. I ...
-2
votes
0answers
13 views

php code for button counter [closed]

Am trying to run a php code which counts button clicks. It increments to 1 and then it doesn't count. here is my code: <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { $counter = ...
0
votes
0answers
12 views

Create a random list of html items within a shortcode in the functions file.

I'm trying to create a function that randomly pulls lines of code for a list of HTML items. Basically, I'm going to have a list of 50 or 100 images with hyperlinks associated with them. I'd like a ...
0
votes
0answers
14 views

How to create an XML Exporter?

I made an XML Exporter in PHP and then thought it would be really useful as a Wordpress plugin, however I'm having some difficulty as I'm new to Wordpress. I wrote an Exporter in PHP that allowed ...
0
votes
0answers
16 views

Sub-menus are not visible [closed]

I tried adding sub-menus from the menus option on the left hand side. But in the theme it shows only one sub-menu. Why its not showing other submenus ?
0
votes
0answers
10 views

WooCommerce as a food ordering system? [closed]

I am trying to make a restaurant a ordering system, where as a customer you start adding the first item into the basket, and popup comes up saying which kind of menu or buffet you want (2 meals menu, ...
0
votes
1answer
33 views

If else statement to check for thumbnail and whether or not it's a mobile device - streamline

This code works but since my php skills are not so good, I'm trying to learn how I can make this cleaner. This uses php_mobile_detect plugin which I've updated with new classes since the plugin ...
-4
votes
0answers
19 views

Use of undefined constant rand - assumed 'rand' [closed]

Any suggestions to this problem Use of undefined constant rand - assumed 'rand' in /home/naveedsoft/public_html/wp-content/themes/ribbon/single.php on line 35
-1
votes
1answer
25 views

PHP Warning missing Argument 1 for __()

I am getting this error in my server error logs: [Thu Dec 11 10:06:30 2014] [error] [client 11.111.111.111] PHP Warning: Missing argument 1 for __(), called in ...
0
votes
0answers
20 views

wordpress form processing to custom post type not working

I'm trying to insert a custom post type for a multiple image upload form. The below code is the form processing. The page is blank when i submit the form. Where did i go wrong? <?php ...
0
votes
1answer
43 views

Validate Uploaded Image using WordPress' Built-in Functions?

I have a form that allows users to upload an image. I'm using the code below (which currently doesn't work) to ensure what a user uploads is valid. Can someone help me out and either update my code ...
0
votes
3answers
24 views

Wordpress errors with PhP Upgrade

I offered to host my cousin's actor profile website on my web hosting account. He had someone create a wordpress site and store it on my account. It was working fine on PhP 5.2, however my host ...
1
vote
0answers
29 views

curl_exec causes timeout on mod_fcgid

I have a very weird situation on my hands and I cannot understand what is happening. It is a true mystery. I am using a theme called, IpinPro its basically a Pinterest clone. It all works perfectly ...
0
votes
1answer
22 views

Execute php in pages

I need to execute my personal php code in wordpress to print data from a mysql database. I've to execute it only on pages. My idea is to create a file page-pagename.php, copy the body of the page.php ...
1
vote
2answers
33 views

Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?

I've seen plenty of questions about changing stuff inside wp-includes and plenty of answers saying don't, under any circumstances. However, I need to change something that's currently in there! I'm ...
0
votes
1answer
13 views

Get category name from custom loop and echo it once

I have a magazine front page that updates with every issue, and the front page shows the current issue posts which are stickied. So for example, this month all the posts are in a category titlted ...
0
votes
1answer
19 views

Order by in foreach

hello im getting post_id by using wpdb after that i wanna show postmeta(sd_l2) order by their value i uses this codes global $wpdb $top5_ov_performance = $wpdb->get_results("SELECT post_id FROM ...
0
votes
2answers
46 views

Passing PHP Variables to AJAX Loaded Pages

I have a blog that shows 9 blogs posts per page, with each additional page of blog posts automatically added using the Infinite Ajax Scroll plugin. Every time a blog post is successfully queried the ...
0
votes
1answer
21 views

Nested shortCode functions in the functions.php file

I'm trying to get a shortcode function (newStuff) to display inside of another function (oldStuff), but I'm running into trouble. Both shortCode functions are listed below, as well as what I've tried. ...
0
votes
1answer
26 views

Custom HTML structure in wp_list_categories

I am trying to accomplish an Ajax navigation for the categories and for that I need the code to look something like: <ul> <li data-level="1">Parent Category</li> <li ...
0
votes
0answers
10 views

outputting WP post title and excerpt into 2 columns and 4 rows within slider

<div class="pul_leftt" style="width: 150px; height: 100px; float: left;"> <a class="pull-left" href="<?php the_permalink(); ?>"> <span ...
0
votes
1answer
26 views

Rename Index.php

I Renamed the index.php wordpress to index3.php, because i dont want offline the current site, that also has index.php as name and other CMS platform. But when I click on the internal links as ...
0
votes
0answers
28 views

Post repeating with infinite scroll

I'm working on this page: http://bit.ly/1ujkiFa I'm creating an infinite scroll of books (wordpress posts). If you see the first row of books is this one: But if you scroll down, after it "loads ...
0
votes
1answer
19 views

Sidebar current menu item for parent

I have a menu within the sidebar of my site. When you click on the child element of the menu, the li tag adds a current_page_item class to the li tag. When you land on the page its the parent page ...
0
votes
2answers
23 views

how to check for wordpress Query errors

In mysql or mysqli you can add this type of Query: <?php $sql = mysqli_query($con, Insert into database itt (name) VALUES ($name)") or die(mysqli_error($con)); ?> What does wordpress do ...
0
votes
0answers
14 views

Using the WordPress Plugins API to get a list of the most popular plugins

I am currently writing a PHP script, and I would like to get a list of the current most popular WordPress Plugins within my script (like this page - https://wordpress.org/plugins/browse/popular/) I ...
0
votes
0answers
9 views

.entry-title and other contents not showing on mobile

I just noticed the title of my blog is not showing up on mobile for specific entries. On the main blog page, nothing shows. I've pretty much gutted header.php but left everything else more or less the ...
0
votes
3answers
44 views

How to edit wordpress pages through cpanel? [closed]

Can you visit http://cmscard.com/?page_id=9 in firefox ? The links are overlapping there. What to do ? If core pages or theme need to be edited, where to find the pages ? The stylesheet is contained ...
0
votes
0answers
12 views

wp_delete_attachment() issue

Short background: Users can contribute to a certain project by sending in submissions. They can send up to five files for each submission. The images ID created by WordPress is stored in a custom ...
0
votes
0answers
23 views

Populate second dropdown using Selectize [migrated]

I was using the Chosen plugin to populate a second dropdown based on the selection of the first. I would like to change over to the Selectize plugin for performance reasons now, but am having trouble ...
-2
votes
1answer
16 views

Wordpress portfolio pagination on home page

I am new to wordpress i am trying to add pagination to my home page that shows portfolios, example there are total of 80 portfolios when i open my site it automatically shows all 80 portfolios on home ...
0
votes
1answer
38 views

Wordpress GET parameters causing 404 Not Found

all, I'm having a problem with my wordpress page while using encrypted $_GET parameters to obtain data. this is my function: function encryptDecrypt($key, $string, $decrypt) { if($decrypt) { ...
0
votes
0answers
18 views

How to add hyperlink with meta-information to each post?

I'm a novice at Wordpress as a developer and I need to have a hyperlink in each post which will add post in different collections (with usage of post2post plugin). Is it possible to do so if I'm ...