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

learn more… | top users | synonyms (1)

0
votes
1answer
114 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 ...
3
votes
1answer
51 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
54 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 ? ...
0
votes
1answer
26 views

how to add number value in front for variable [closed]

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
1answer
83 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
22 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
34 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
23 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
28 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
41 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
27 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
66 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 ...
0
votes
0answers
19 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
17 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
1answer
50 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 ...
-1
votes
1answer
41 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
30 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
96 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
40 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
59 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
31 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
43 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
30 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
37 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
139 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
30 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
68 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
17 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
29 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
67 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
46 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
29 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
18 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
59 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
14 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 ...
-2
votes
1answer
23 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
59 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
23 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 ...
0
votes
0answers
29 views

Allow guest file uploads without a plugin

I 'm building a classified web site in Wordpress. Here, I need to allow registered users as well as non-registered users(guests) to add advertisements which are custom posts in my site. All posts go ...
0
votes
1answer
51 views

Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?

I want to restrict the uploads and only be visible to logged-in users. But the PDF's or images files always are visible and also to un-logged users. You can imagine that this WP would be completely ...
0
votes
1answer
29 views

Media Playlist Plugin

Alright so recently I purchased an audio player called "Liner" and I am working with it now converting it into a WordPress plugin but the one thing I am having the most problems with is the fact that ...
0
votes
2answers
53 views

Different Webhost and using Google Mail server: Is there a better way than SMTP?

Currently my situation is the following: I am using Wordpress which handles a few things mail related: Registration forms that send a notification and contact form that send a message. However, ...
0
votes
1answer
43 views

What happens when WordPress memory limit is exceeded?

Let's say a WordPress website has the following settings: PHP Memory Limit: 100MB WordPress Memory Limit: 50MB What happens when the WordPress Memory Limit is exceeded? Do plugins/themes stop / ...
0
votes
0answers
24 views

How to query a list of posts titles into the choices for Advanced Custom Fields (Wordpress)? [closed]

I have two custom post types in WordPress: Authors and Books. I want to use Advanced Custom Fields to add a checkbox list when I add a new Book. This checkbox list contains the entire list of authors. ...
0
votes
1answer
39 views

Adding attribute to the post.php form tag in wp-admin

I need to add a 'novalidate' attribute to the form tag in wp-admin post.php. The post.php code itself does not contain the tag, rendered from elsewhere so wondered where it may be or better yet if ...
0
votes
0answers
20 views

Wordpress Multisite Add custom fields on registration then show in Profile Page

I am searching all over the internet but can't find how to add or update meta data after the user has activated their blog/site. I want to add those one so that the user can see their additional ...
0
votes
0answers
12 views

check value on external url - WP

i need a form feeld on WP page to enter a code. this code must be checkt on a external url. So as example the code is: 4445000000395 it must be checked on: ...
0
votes
1answer
37 views

How can I display a div ONLY if it is not a certain term page

Ok so I have two Custom Taxonomies of "Types" and "Countries" with dozens of terms. I basically use the terms of "Types" and "Countries" as a filter for my products in my taxonomy.php Now Those 2 ...
0
votes
2answers
51 views

Shortcode not passing variable to included file

I set up a shortcode which includes a standard php/html form file. In the form I have a hidden field where the value is a variable which is meant to be available in the form via the shortcode ...