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

learn more… | top users | synonyms (1)

0
votes
0answers
28 views

How to build shortcode for tabs

i made a tabbed widget to display recent post , comments, and popular posts, but now i want to take out tab function from this and make a shortcode of it, so i can add it to wp posts and use it there. ...
0
votes
0answers
59 views

Passing JavaScript variable to PHP popup

I have a popup that has a list of people. The user is allowed to select up to 3 people that they would like to compare. I then would like to show them a page that's comparing the 3 people that they ...
1
vote
0answers
26 views

Change tinyMCE editor to allow marked content when pasting from Word

I'm a big supporter of how WordPress handles pasted text from Word, however for my client I need to change this. My client is marking text within Word to use as a reminder (background color). Does ...
0
votes
2answers
80 views

Cant get paginations on single.php to work with my custom post types

I'm using custom post types and custom fields plugins for my custom post types. I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of ...
1
vote
1answer
80 views

Evaluations of two wordpress security plans against php code injection attack

Senario: I've posted one wordpress php code injection senario on SO before, ...
0
votes
1answer
14 views

What is the intended purpose of the _wp_attachment_context post meta key?

If the $context variable isn't empty inside wp_insert_attachment(), post meta info gets added with a meta key of _wp_attachment_context. What is the intended purpose of _wp_attachment_context? For ...
0
votes
0answers
11 views

How can i execute an external form and mysql funtion in wordpress

I have a made a form in an external page with mysql database execution containing select update and insert how can i include this page in wodpress template page and get the same results which i am ...
0
votes
0answers
141 views

Calling Theme My Login templates in a Bootstrap Modal Popup

Hopefully someone can help with this. The issue can be found at http://adopt.hatchmedia.ie. I am using Bootstrap v3 in a WordPress site. The site has a login window for users which I have set to ...
0
votes
1answer
14 views

Using cron for multiple queries

If I have something like the following in my single.php file (as a very basic example): <?php $a = the_field('test1'); ?> $b = the_field('test2'); ?> $c = the_field('test3'); ?> $d = ...
0
votes
0answers
24 views

Is custom behaviour possible when asynchronously uploading?

I'm using Plupload and making use of wp-admin/async-upload.php to allow my website's users to upload images from the front-end asynchronously. The default behaviour of that particular script is for ...
0
votes
2answers
24 views

Wordpress cron function not firing

I am trying to get a simple php function working with cron (based on a tutorial). I have the following: <?php if (!wp_next_scheduled('please_just_work')) { wp_schedule_event( time(), 'daily', ...
0
votes
1answer
47 views

writing an unique php function to be used on my website

I'm using a custom php code to translate my date format on my wordpress website, using get_the_time. I have to use this code on various spaces on my website, sometimes more than one time on a page. ...
0
votes
1answer
34 views

How to fetch results from database

I'm attempting to customize a wordpress theme. I've added custom field cp_job with form submission. This indicates if the ad is either Buyer(Buying services) or Seller(selling services), which is now ...
0
votes
0answers
48 views

Building a drop down menu for child categories

We have an auto selling WP site with a makes page with logo and a link to view all vehicles in that category. Ideally we would like a drop down menu in their displaying all models (the childs of the ...
0
votes
1answer
28 views

Showing custom field contents without listing description

I'm customizing a directory theme and my custom fields appear only if I put some text at the company's description, otherwise it will show nothing... Any idea how to fix that?? I think the problem ...
0
votes
0answers
16 views

Displaying checkboxes custom field as list

I have a checkboxes custom field, and I figured a way to show it as a list, the problem is, the name of the field shows as an item on the list, instead of for example: Items: Item 1 Item 2 it ...
0
votes
0answers
17 views

Any way to calculate distance between 2 addresses based on custom fields?

I'm working on a directory database theme, and I wonder if there is any way to calculate distance between 2 addresses or lat/long.... It can be a straight line calculation, and direction (bearing) ...
0
votes
1answer
29 views

How can I show <li> only if custom field has content [closed]

I have the following code: <font size="2">Pistas:</font></p> <ul> <li> <?php echo types_render_field("pista-1a", ...
0
votes
0answers
29 views

Microdata based on php content

I'm trying to add microdata to a bought theme. This is the microdata of a local business: <div itemprop="sourceOrganization" itemscope="itemscope" itemtype="http://schema.org/LocalBusiness"> ...
0
votes
0answers
31 views

Passing Hidden Field into modified PHP plugin script

I'm going to need a little help on this one; I've got a plugin the King Sumo Giveaway... and in the file class-ks-giveaways.php I've found what I need, which is the element that sends the ...
0
votes
0answers
10 views

P2 By Email Problems with Outlook

Our organization just launched a new, private online community so that our members can communicate and connect with each other online. It's a WordPress site, but we use the P2 theme, which allows for ...
0
votes
1answer
19 views

preg_replace() No ending delimiter '.' found [closed]

I get this error: Warning: preg_replace() [function.preg-replace]: No ending delimiter '.' found in but I can't figure out why Here is the code: foreach( $content as $item ) { ...
0
votes
0answers
42 views

Dynamic multi column menu

I have a dynamic menu where the submenu is based on specific content from the page. With help from Uruk on the this thread We(he) made it work. What I realise now is that if a page contains a lot of ...
0
votes
0answers
20 views

How to manage different admin notices for different blogs?

i am trying to create plugin that can manage different admin notices or any other information for different blogs. for example: i have in my multisite network with 50 blogs. i want to select some ...
0
votes
1answer
20 views

How to speed up installing plugins and upgrading WordPress

I currently run on a VPS that is running the latest version of Ubuntu, PHP 5.5.9, and WP 4.0, and have been running my plugin upgrades through libssh2 via a configuration in wp-config.php ever since I ...
0
votes
0answers
102 views

How to resize an image server-side before upload?

I've been trying to resize an image client-side before uploading (see this question). I'm now trying to resize server-side before uploading. I think wp_handle_upload_prefilter is the filter I should ...
0
votes
0answers
14 views

How to access post information from two separate plugins

Essentially I have two different plugins that display separate information but they are related to each other. One plugin is to display a catalog of courses. Another is to display the schedule of the ...
1
vote
0answers
22 views

Adding Field to Profile “Name”

I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by: //Begin ...
3
votes
0answers
148 views

How to resize image on client-side before upload?

I've been using Plupload to resize images on the client side before uploading them to the server. I've implemented a front-end form which lets the user select a file from their computer and submit it. ...
0
votes
1answer
42 views

How to copy data from user profile page (profile.php) to theme customizer

i am trying to figure out how to copy data from user profile page (profile.php) to theme customizer. i want to copy some data from some fields, when theme is activated. and stored the data in theme ...
1
vote
1answer
187 views

Generating a random number on every post and saving it in database

I want to generate two random numbers above every post and save them in the database so that it won't change every time we see or refresh that page. I've decided to put this php code inside my ...
0
votes
1answer
101 views

Accessing $post after PHP is executed

I am using javascript (angular.js) to make page animated page transitions in a wordpress site. I am not experienced enough to have the site completely built in angular and then display posts etc using ...
0
votes
0answers
21 views

Using 'array' method in wp_nav_menu causes it to disappear

I want to change the menu_class on my navigation bar, but the second I try to use the 'array' method to display my nav, it disappears. This works: <?php wp_nav_menu('Profit.Ology'); ?> This ...
0
votes
0answers
21 views

order number then strings

I have a properties website where pulling properties from API. There are prices and strings in the price field. I want to show the properties with number first. Now there are showing modified on ...
0
votes
0answers
37 views

Plugin calling HTTP_X_REQUESTED_WITH

I'm writing my first WP Plugin. I have a form that saves the input data after the data is entered without having to submit. Everything is working but I am unsure if I am calling HTTP_X_REQUESTED_WITH ...
0
votes
0answers
21 views

Shop coding dynamic permalinks & titles

I have built a shop application using php and mysql and wasn't sure how to add it to wordpress but I had a stab at it anyway, I managed to get it to function fine but because the pages are dynamically ...
0
votes
4answers
98 views

Hide page title

I have created a custom page template and want to hide page title from the page. How do I do this? I know I can just leave page title blank or do it in CSS and that works but isn't that bad for SEO ...
0
votes
1answer
39 views

How can I automatically resize up images to fit into all of my registered image sizes

I need Wordpress to create versions of each image in ALL of the registered image size, even if the registered image size is larger than the uploaded file. For example, if I have the following ...
2
votes
2answers
126 views

How to order WP_User_Query results to match the order of an array of user IDs?

I'm using WP_User_Query to get a list of users from my database. I'm showing specific users only via use of the include parameter. For example: $args = array( 'include' => array( 1, 3, 5, 99, ...
0
votes
0answers
46 views

PHP version or config prohibiting script from working properly

I have a function that is working correctly on another site, but not on mine (the string is not being replaced on my site). Both sites are using the default 2012 WP theme and the same plugins. I'm ...
0
votes
1answer
30 views

How to sort results from a custom database table

I've created a custom WordPress database table which I'm using to store 'likes'. The columns I have are: id post_id user_id I'm now trying to get an array of post IDs that a particular user has ...
1
vote
1answer
47 views

Change “en-US” to “en”

Hey I am trying to edit the WP theme files, and I am using bloginfo('language') to get the language of the page. However, it returns me "en-US", which does not work while redirect the page. The site ...
0
votes
2answers
57 views

Is this spyware on my site or a real Java update?

I run a small WordPress website for the wife http://craftybluefox.com I keep getting this java update box poping up only on her site and looking at the links they go to somesite ppv2014.info which ...
0
votes
1answer
22 views

search results based on categories or custom fields

So I have the below spitting out by post types; how could I edit to add custom field data to also populate? And or just categories? $categories = array( 'post' => 'Articles', ...
0
votes
0answers
42 views

Wordpress installation permission errors

I'm getting "Download failed. Failed to write request to temporary file." when I try to download plugins, and the plugins (that were working) are now unable to write what they need to (namely a ...
0
votes
0answers
36 views

how to load post content when a post title is hovered using ajax

i have a wordpress blog and i need to make my posts content show up when vistor hover the title of the post on my index page with no need to get into that post , exactlly like in the following site : ...
0
votes
0answers
6 views

Filter get_projects_category();

Is it possible to amend the <?php get_projects_category(); ?> to only get projects from specific categories? The previous code is populating a menu with category links, and I only want certain ...
0
votes
1answer
105 views

Create page with custom php script and fetched data

I created WP page and I need to show a table with some information. This information is hold in a database (hosted on the same server). To be more detailed, I'll try to split my question. I'm new to ...
0
votes
2answers
117 views

How to check if a string is a valid URL

WordPress provides a helpful function called is_email() which checks if a given email address is valid. Is there a similar function available to check if a URL is valid? I tried is_url() but that was ...
3
votes
2answers
108 views

How to search display_name column when using WP_User_Query

I'm using WP_User_Query to bring back a list of users. According to this article, I can focus the query on particular columns (I'm assuming in the wp_users table) using the search_columns param. My ...