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

learn more… | top users | synonyms (1)

0
votes
1answer
112 views

Handling an Ajax form submit

I am developing a wordpress plugin that will create a contact form and then submit the details through an ajax request. jQuery.ajax({ type:"post", dataType:"json", ...
1
vote
1answer
85 views

Execute a shortcode when clicking on a image

I asked this in stackovorflow under javascript and was informed not possible so I trying here I have a shortcode for a opt-in form and I want it to pop up when a image is clicked I tried the ...
0
votes
1answer
50 views

Why does WP_Query show only the same post even with different categories and endwhile?

I have 3 divs that WP_Query with 3 different categories and end it with the php endwhile,but it only shows the same most recent post query three times over. Do I need to hard reset the query loop ...
0
votes
0answers
20 views

Parse Error when trying to access Products -> Categories

Whenever I try to access the Categories or Tags tab under Products on the WP dashboard, I get this error message: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in ...
0
votes
0answers
63 views

Post Rating System with wordpress

I'm using a Post Rating System with wordpress and jQuery, i followed this tutorial for that. ` jQuery(document).ready(function(){ jQuery("a.like:not('.voted')").live("click",function(){ ...
-4
votes
1answer
45 views

Echo get_option displays as text

I am trying to use some code that is stored as a settings option in WordPress. When I try to use the following code below however, it show up as plain text instead of executing. The option I have ...
2
votes
1answer
304 views

White text on white background in TinyMCE when wp_editor is called in WP 3.9

One of the features of my plugin is to add a TinyMCE editor instance inside a meta box on the Edit Post screen. This has worked great up until 3.9, and I'm not clear as to what's going wrong. Here ...
4
votes
3answers
259 views

Plugin update error message

I'm working on a client website where the framework requires a specific plugin version to work properly. With the follow lines of code in my functions.php file, it stops the plugin from updating ...
0
votes
1answer
40 views

How can i make a search box to search by custom field

Hy i am trying to make a search box for a week to search for post that have a specific custom field. I have a post_type - produse with 2 custom field CF1- culoare / alb,maro,verde CF2- ...
0
votes
1answer
65 views

display user input using ajax in wordpress

I want to display user input with ajax . but still is executed function fail in js file. I dont know where the problem might be. I read http://codex.wordpress.org/AJAX_in_Plugins and I saw ...
0
votes
0answers
106 views

WordPress theme options settings not saving

I have problem with my theme options settings saving. My settings is to saving to permanently , its just only save when you stay on the theme options page after saving the settings. But when I go to ...
0
votes
2answers
68 views

Headers already sent in Pluggable.php / homepage and wp-login error

After migrating site to another account on same host, I started to receives strange errors. Firstly I encountered an error where at the login page I was asked to turn on Cookies. And after I deleted ...
1
vote
1answer
75 views

Link posts to pages for breadcrumbs

Is there a way of linking custom post types to pages. I am looking to create breadcrumbs for the posts. The posts are summarised on individual pages e.g. golf, tennis, football etc.. So the ...
0
votes
1answer
161 views

PHP code to call image Caption, Alternative Text, and Decription?

Is there a Wordpress PHP code to call an image Caption, Alternative Text, and Decription? I have several images with Titles, captions, alt text and Description fields filled and would like to display ...
0
votes
0answers
56 views

Problem with checkbox using custom field archive

How can i get archive base a custom field. I try this but my hosting say there is a problem with my code, the code make manny select in the database.. I have 1 post type, and 2 custom field ...
2
votes
1answer
39 views

How is WordPress manipulating the posts like there are folders?

As you know, a WordPress post can usually be seen going to a link similar to this: myblog.com/2014/03/27/sample-post/ There is no folder named 2014, 03, 27 or sample-post in the blog. Until now, I ...
0
votes
0answers
46 views

How to: Get the first image from the next and previous post in single.php? (5 posts)

I know I can call a function below but it works in loop at index.php only. function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = ...
0
votes
0answers
31 views

Create a author subpage

I want to create a author subpage, that looks like this www.example.com/author/user/subpage I read the Wordpess codex about how to create subpages. You can link a page with another page in the page ...
1
vote
3answers
78 views

Rectangle avatars

I'm using get_avatar() to output images of my users. Ref: https://codex.wordpress.org/Function_Reference/get_avatar The optional size parameter lets me specify a size. However, this makes a square ...
1
vote
2answers
115 views

Load wordpress content in other domain

I've made some researches on google but can't get the right answer. I need to get my wordpress loops outside a domain using php file. For example: I have a website hosted with www.mysite.com using ...
0
votes
2answers
52 views

Wordpress displaying content from sub pages

Im trying to pull in content from the 'sub pages' onto the homepage, I used the below to pull in content from the 'child pages' but unsure how to do this for the 'sub pages' Does anyone know how this ...
1
vote
0answers
17 views

theme_root returning a truncated URI

I'm unable to access the theme editor via the control panel, receiving 'Sorry can't edit files with .. in the name....' and after trying to trace back the cause, I've found that the theme_root is ...
1
vote
1answer
50 views

$wpdb->wp_users returning empty value for

I have a code Example: function custom_func(){ global $wpdb; $wpdb->flush(); //tried with and without this line $getTest = 'SELECT * FROM $wpdb->wp_users LIMIT 1'; ...
0
votes
2answers
62 views

Make the text field in search form optional

I've added some custom fields to my search form, which will be used more frequently than the original text field (<input name="s" />). However, the text field seems to be required to perform a ...
0
votes
1answer
20 views

How to SELECT number from table and use in calculation . Unsupported operand types

This is the PHP part of an ajax request. The user enters two numbers, via two fields. I can add these two numbers together & display the total in a field, this works OK. However, I would also ...
0
votes
1answer
134 views

Add Wordpress to Meteor js site

I have a Meteor app that I want to add Wordpress blogging platform to. There doesn't need to be any integration, just: http://example.com/blog/ Anything behind blog/ belongs to WP. How would I go ...
0
votes
3answers
344 views

Wordpress plugin: render only page content using ajax call

I'm writing a plugins that renders json data from an API request and I need to implement an infinite scroll in a content page. The problem is when I render the content with an ajax call, it renders ...
0
votes
0answers
146 views

Contact Form 7 to web service

I wonder if anyone can help me with something that's driving me crazy. I'm trying to implement a series of forms that will write to a CRM and the data must be passed as XML. I'm not particularly ...
0
votes
0answers
30 views

Echo post content from archive page

I am trying to pull the latest post content in a archive page into the meta description, this is what I got: <?php } elseif (is_tax()) { ?> <meta name="description" content="<?php ...
0
votes
1answer
153 views

How to call Shortcode categories for custom post types?

Hi I'm trying to do something rather tricky in my Wordpress Theme I'm more of a designer front-end developer so its a bit of a guess work with php. Anyone have any ideas why this code only displays ...
0
votes
1answer
45 views

Add filter multiple times using only one master function

Is it possible to use add_filter with lets say an array of different values? to achieve something like the following: foreach($templates as $name) { add_filter( 'single_template', function ( ...
0
votes
1answer
62 views

How would I use this filter to change the output of the date format to “Twitter time”?

I'm using a plugin called Latest Tweet Widget to display the latest tweet. The tweet date gets displayed by the month and day (Mar 22). However, I want it to be in "Twitter time" meaning words like "3 ...
-1
votes
1answer
622 views

How to have a custom display for both woocommerce archive and product-category pages? [closed]

So far Hi there, I understand my question is very closely related to a common question about 'woocommerce'. I have been using a variety of woo hooks, filters and creating copies of original woo ...
0
votes
0answers
43 views

Attach form output as TXT-file in notification email

(How) Is it possible to attach the form output (contact form 7 or similar) in a TXT-file with the notification email to the admin? Is it possible to make a template for this TXT-file with only some of ...
2
votes
1answer
205 views

How do I enable HTML5 prefetching on this page?

Site example: http://www.ianstuart-bride.com I currently have this bit of code in header.php, but it does not work as desired: <?php if (is_archive() && ($paged > 1) && ...
0
votes
1answer
25 views

Retrieve Plugin Settings and insert into XML string

Apologies for any confusion as I'm completely out of my depth here: I've been trying to write a plugin which will send form data as XML to a CRM using SOAP. The basic plugin works fine, but I would ...
0
votes
1answer
82 views

Get All In One SEO Pack to use custom field instead of Content

I'm having an issue with a custom theme whereby All in One SEO pack isn't auto-generating descriptions because I am using a custom field to enter the main body of the page/post. Is there way to ...
-1
votes
1answer
437 views

How to add a second 'place order' button in WooCommerce [closed]

My client would like two 'Place order' buttons on his checkout page (http://www.jobgrandprix.fr/checkout/?set-cart-qty_2652=1). By default, the 'Commander' (his site is in French) button is at the ...
0
votes
2answers
323 views

Different database query in function.php using mysqli

I am trying to connect to a database in the function.php using mysqli. The code seems to run fine when it is not on a separate php file not on wordpress. But when I run it on wordpress I get "Connect ...
0
votes
1answer
439 views

Using Multiple Submit buttons to trigger customised php functions

I may be going about this completely the wrong way but bear with me... I have a long guestlist that is automatically populated using a foreach table. I would like to put a 'No Show' button on this ...
0
votes
1answer
81 views

Removing all my hardcoded URLs with get_site_url()

In my php files, I would like to remove all my hardcoded URLs (ex: http://mysite.com/) and replace them with the get_site_url() function. My problem is with the php code of one of my functions (in ...
0
votes
1answer
115 views

Social share buttons text shows up on post excerpts

I'm using the Social Likes plugin and there is one problem. The text on the share buttons show up in the excerpts. For example, I grabbed this off of one of the post excerpts: ...
0
votes
1answer
23 views

How do I target the child theme with get_bloginfo();?

In the code below (which is located in my functions.php file), in reference to ('.get_bloginfo('template_url').', I'm trying to target my child theme but it keeps coming up as the parent theme. /* == ...
0
votes
2answers
118 views

Is wp-app.php or wp-apps.php needed for Wordpress?

A few Wordpress blogs I overlook have suddenly generated 3 PHP files in their top folder: wp-app.php, wp-apps.php, and wp-register.php, not of which existed before. Checking their contents against a ...
0
votes
1answer
54 views

Remove Post if Advanced Custom Field is checked to fix paging

I'm trying to setup a query that filters through posts and removes ones that have an ACF field "archived" checked. Post queries are pretty foreign to me. ...
1
vote
1answer
99 views

Escape special characters in image link

I am importing the images from XML using a plugin, it truncates the image link while importing. Some symbols are causing the images not to show in the posts. This is the image link. What it shows is ...
2
votes
2answers
57 views

How to stop PHP code running when in a child theme

I understand you can add extra CSS on top of the parent theme, but how do you remove PHP code from functions.php? I want to remove the Masonry plugin in twentyfourteen theme, and have located the ...
0
votes
1answer
35 views

WP Business Directory Manager Plugin Admin Listings?

I'm using the WP Business Directory Manager plugin and I'm having some problems. I've been meaning, as an admin, to add a Listing to my directory, but it shows pended, so i look a round the plugin a ...
0
votes
2answers
116 views

How to echo the_title from an array of posts?

I'm trying to query wordpress post by using query_posts and trying to save them in an array so that I get retrieve the post from array. This is what I'm doing, $posts =array(); $args = ...
0
votes
3answers
23 views

Wordpress site cant display media when it's live

In localhost this code works fine to display images from my media gallery but when my site goes live $images are empty although there are images in the media gallery. Are there something I've missed ...