Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
25 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
11 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
13 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
22 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
24 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
16 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
8 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
12 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
20 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
18 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
13 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
16 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
21 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 ...
1
vote
0answers
81 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
31 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
142 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
96 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
19 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
31 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
17 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
86 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
28 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
105 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
44 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
24 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
45 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
16 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
34 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 ...
-1
votes
0answers
23 views

Wordpress Image Editor on Front End

I'm wanting to implement the wordpress Image Editor that is available when you upload images to the media library in the back-end on the Front-End. I have functionality in place already where users ...
0
votes
0answers
30 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
5 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
72 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
50 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 ...
2
votes
2answers
74 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 ...
0
votes
1answer
35 views

Next post link on a bootstrap button

Seems extremely simple but it doesn't work. Here is my code: <a href="<?php next_post_link(); ?>"> <button class="btn btn-default pull-right"> <span class="glyphicon ...
1
vote
1answer
69 views

Get the title before comma

I am using this code to return the title of the post on a gravity form field. add_filter('gform_field_value_page_name', 'page_name_filler'); function page_name_filler($value){ return ...
0
votes
1answer
52 views

display specific widget to a page

im trying to display a specific widget i need for the header current im using a code to display all widgets but my problem is that if I add additional widgets it will destroy my site. ...
0
votes
0answers
31 views

Install will not load: PHP does not have MYSQL installed

I'm having trouble installing Wordpress on my Windows 2008 R2 server. I'm getting the message: Your PHP installation appears to be missing the MySQL extension which is required by WordPress. To ...
0
votes
0answers
11 views

Show value based on dropdown [duplicate]

I am trying to create a short code with a form I have the form displaying ok but I need to be able to pull the price information from sql table as well and show it in a label. How can i do that using ...
0
votes
0answers
30 views

select option with value count

i'm early for wordpress and php code. so, i have post type property with type ( apartment, house, villa, etc ). example, for type apartment any three property. but on select option, be like this : ...
0
votes
1answer
53 views

Sort posts by custom fields value using dropdown menu

I'm trying to sort my posts by a custom field value, called price. Only using numbers in the custom field value. I want that the visitors of the website can sort the posts on price by using a ...
4
votes
1answer
26 views

How to create a test that calls is_front_page in phpunit?

I'm using WP_UnitTestCase but in my code I have this condition. is_front_page which I'm not sure how to simulate that in PHPUnit This is the piece of code that I have elseif ( is_front_page() ) { ...
-1
votes
1answer
23 views

Convert ACF checkbox choices to links [closed]

I'm using ACF (Advanced Custom Fields) to create a checkbox on a custom post. Does anyone know if it's possible to turn those checkbox choices into links? For example: Checkbox Results: ~ Red ...
1
vote
3answers
60 views

Change behavior of the <!--more--> tag

When I click "read more" at the bottom of one of my website posts, it just loads the rest of the text in the same page and the same section, thus overflowing elements with text and spoiling my layout. ...
0
votes
0answers
58 views

Radio buttons value not calculated and div not displayed on button click event

I have a list of index and in each index I have 3 fields indexno, indexname and parts. parts is parent and has sub fields partno, partname and partvalue. Each part is displayed as a radio button. ...
-1
votes
1answer
26 views

Like/Dislike plugin crawler problem

I'm making new plugin where users can vote like/dislike my posts. But i have a problem with this plugin. Crawler bots can vote, and i don't know how to prevent it. Vote links have no follow, but i ...
0
votes
1answer
28 views

Show custom field if it exists, and show different elements if it doesn't

Basicly what I'm trying to do (with very basic knowledge of PHP): If Custom Field $randomname exists for that particular post, show the content of that custom field. If Custom Field $randomname ...