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

learn more… | top users | synonyms (1)

1
vote
1answer
15 views

Center and hide overflow of WP toolbar custom links

I have made 22 custom links in the WP toolbar for my site but when I reduce browser/screen width they are completely un-resposnive in terms of CSS and stack instead of simply not displaying links that ...
4
votes
1answer
90 views

How can merge two arrays values in one array and save in database

I am working on WordPress upload meta fields. When user upload images the images are sized in two dimension one is "thumb" and one is "big" and they re sized very perfectly. I save both of images ...
-3
votes
0answers
24 views

How can I get accurate number of products added in cart in Woocommerce Booking plugin?

I have added a plugin in my client's wordpress site named WooCommerce Bookings(plugin name). I had added more than one quantity of single product in cart but that is still counting only one in ...
-1
votes
1answer
27 views

Counting number of products sold for specific catagory

So the code below will count the number of times an item has sold and place it in the products page, but as the title says I am trying to count the number of products sold under a certain category ...
0
votes
0answers
81 views

Limit Search Queries per IP per Day

I have a small website keeps several pdfs, but to prevent having all of the pdfs slurped up by someone's script (and to keep track of popularity of each file), I am requiring that people enter the ...
0
votes
0answers
23 views

Qtranslate not redirecting according to browser language

In this website I have two problems created by qTranslate: 1) The redirect is not working: while sometimes it works at the first load of the page, going again to the same URL resets the chosen ...
0
votes
1answer
21 views

Weird Behaviour: Not all Wordpress Posts appearing

My wordpress posts have vanished on my dashboard but remain in the database? Meaning I have many 404 errors. All (52) | Published (4) | Drafts (7) | Trash (2) TOTAL =11 items (Note how theres only ...
-1
votes
0answers
59 views

woocommerce add to cart button ajax clear cash after adding

Hi all I have big problem with Woocommerce add to cart button. When I select th quantity of item 1 and press add to cart button after that if i change quantity to 2 or 3 or 4 it add just one item. if ...
-1
votes
0answers
17 views

Ordering by multiple custom meta data fields

I'm trying to sort WooCommerce product results by several meta data fields, currently this works for one, "Routine". The fields have been created using Advanced Custom Fields. The final result should ...
0
votes
1answer
14 views

Published custom posts missing

On my wordpress dashboard I noticed a large number of past posts were missing. All (708) | Published (386) | Drafts (17) | Pending (8) | Private (1) | Trash (3) - Total 412 Our items are custom ...
0
votes
1answer
38 views

Include files in functions.php

This is a rewritten post since the way I worded my old post totally confused everyone. MikeSchinkel shows how he uses Include files in his theme's functions.php file In this Stackexchange post: ...
0
votes
1answer
26 views

Post formating on Home page

I've simple question regarding WordPress post looping. I want to achieve something like this on my site: ~ I am running Real estate portal site and I want to display featured property on my home ...
0
votes
0answers
7 views

wordpress feed-make a custom feed URL using custom field

Can I Use www.example.com/?customfield1=value1&customfield2=value2&feed=rss2 to generate feed. Generated feed should be filtered by customfield1 and customfiel2's value.
0
votes
1answer
24 views

archive per year with monthly

I have an archive that shows all the post on monthly now i want is to group them per year like 2015 Jan Feb March 2014 April May I'm using this code. <?php wp_get_archives( array( 'type' ...
-1
votes
1answer
28 views

get_option return incorrect values

I'm making a Wordpress Plugin, and I'm starting with the Admin Settings page, I have the page setup and in the menu bar, i have also added sections and fields in to the page and they all work fine, ...
2
votes
2answers
189 views

Conditional to modify query results

I'll admit, I'm not a PHP expert, nor am I familiar with all of the WordPress functions and hooks. I've been stuck on an issue, searching for help without much success, and I was hoping that someone ...
0
votes
1answer
43 views

Allow the execution of an external PHP script for logged users

I need to call a PHP script external to WP and I would like to take advantage of the credentials of WP so that only logged users can access this script. I have tried to use this code embedded in my ...
0
votes
2answers
43 views

How do I check if there is a tag in the title

I have many post with multiple tags ex: AMOS LEE, FOO FIGHTERS,TAYLOR SWIFT Post only have one of the tags in the title ex: “The Man Who Wants You” – Amos Lee How would I scan the_title() and go ...
0
votes
0answers
8 views

How to load individual widgets within sidebar(Not all at once)

I want to load my Wordpress site sidebar widgets when scroll down. So I want to know how to load individual widgets one by one. I tried plugins like 'Lazy Widget Loader'. But they didn't work for me. ...
0
votes
0answers
27 views

wp nav menu without label

I have a menu on wordpress using this <?php wp_nav_menu( array( 'sort_column' => 'menu_order','menu_class' => 'navlink', 'container' => false, 'theme_location' => 'header-menu') ); ...
0
votes
1answer
10 views

$wpdb returns duplicate posts

I have created a shortcode which shows the posts which were created after the user last logged in. The shortcode is working perfectly fine, but I am not sure why but I am getting 7 duplicate posts. So ...
0
votes
0answers
33 views

Category - “No content found”

so here is my problem: get_header(); if (have_posts()) : while (have_posts()) : the_post(); ?> <article class="post"> <h2><a href="<?php ...
0
votes
1answer
24 views

How to avoid duplicates when creating recent network posts

I'm using this code to get a list of custom posts (with custom fields) from the network for display in a php widget. It's old, but it's working fine: <?php switch_to_blog(4); ?> <?php $ca = ...
0
votes
0answers
14 views

Google-App-Engine[PHP]: Error trying to establish database connection

Hi to whom this may interest, I am finding a problem with the cloudsql as database connection is not being established. I have followed the following site step-by-step ...
0
votes
0answers
21 views

Using simple field variables within a loop

I am trying to loop a custom post type called "room" within a custom post type called "venues". I have venue pages and I have created a custom post type called room which is tagged with the venue ...
0
votes
1answer
21 views

Commas not displaying in implode

I'm trying to separate some taxonomy terms with a comma, but I can't see to get the commas to show correctly. Here's what I got: <?php $terms = get_the_terms($post->ID,'type'); foreach ( ...
1
vote
1answer
51 views

Excerpt unwanted text “<!— value: -->”

After I updated my WordPress to 4.2.2 I minified my code : <?php while( $teamGroup->have_posts()) : $teamGroup->the_post(); ?> if (get_the_excerpt()) { ?> <?php echo ...
0
votes
2answers
27 views

esc_url( ) won't use https

The code on the page looks like this: if ( ! empty( $image ) ) : ?> <div class="headshot"> <img src="<?php echo esc_url( $image ); ?>" alt="Photo of <?php echo esc_attr( ...
0
votes
0answers
19 views

Adding some sort of Label-text to a looped button

To sum up my problem, here's a picture: I've added this text with a hover-fx to a button to explain to users what the button does. I've done so by adding a <div> with another <a>-element ...
0
votes
0answers
6 views

Extra text in the sidebar for 1 menu item and his sub-menu items?

In the main menu i have 3 channels "About, Service, Contact". The page "About" has 3 sub-pages, my issue is in the sidebar in channel "About" i need a text which is only on this page visible and his ...
0
votes
0answers
20 views

How to fix pagination issue on wordpress

I have a category with 2 subcategories. i have created a custom category template, to show the posts from the subcategories of that category, so it look like that: category page shows: Subcategory ...
0
votes
0answers
25 views

How to find the function which is outputting Array

I'm calling a plugin (Event Rocket) from a template and the output is mostly as expected but seldom the only thing that is displayed is "Array". I have consulted the plugin's makers and they have no ...
0
votes
1answer
34 views

Get terms of the posts with one query

I need to get the terms for 2.000 posts. How can I do this without making 2000 queries? Is it possible to get terms of the post in the post_object with a filter or something similar? ...
0
votes
0answers
10 views

get_metadata() vs get_post_meta() vs custom query [duplicate]

I have 27 items of post_meta data that I need to get out in a class that I use through-out my website. Currently I'm using: $this->postMetaData = get_metadata("post", $postID); This returns an ...
0
votes
2answers
118 views

Show success or error messages in Ajax response to Wordpress custom registration form

I have this custom form inside a Wordpress page template <?php if(!is_user_logged_in()) { if(get_option('users_can_register')) { if($_POST){ $username = ...
0
votes
0answers
23 views

Using Conditional Themes to change out different themes using the Theme Customizer radio Buttons

I've been trying to change my theme based upon a radio button selection from the theme Customizer. I've included this plugin -> https://wordpress.org/support/plugin/wp-conditional-themes as a file ...
0
votes
1answer
84 views

Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS

I've been having trouble Automatically Compiling my .scss files into my main WordPress style.css file. I'm using Leafo's SCSSPHP script and trying to achieve a few things. i'm using Kirki ...
0
votes
1answer
21 views

Meta Box plugin image_advanced not showing up on frontend

I'm using the Meta Box plugin on a site and am having trouble with one of the meta boxes options. I've got it working fine in the backend, but when I use it in a page template all i get on the front ...
0
votes
2answers
35 views

divide custom field values in div every two values

i have this html mark-up to sort some data <div class="row"> <div class="col-xs-2"> <img src="images/member-schools/ms1.jpg" class="img-responsive"> </div> <div ...
0
votes
1answer
25 views

Get all categories post is not in

I am trying to get a list of all categories that the current post is not in. I made it this far... $categories = get_the_category( $post_id ); $nocats = get_terms('category', array('exclude' => ...
0
votes
1answer
49 views

WordPress get pagination on wpdb get_results

How do I gee the numbered pagination of custom wpdb result? below code will show one latest post from each authors in the site. I want to show 20 posts per page with a numbered pagination. $postids ...
0
votes
0answers
20 views

Perfmon performance counters on WAMP

I work on an WordPress site for a business. I'm using WAMP: Windows Server 2008 R2 Standard, sp 1, 64-bit. Apache version 2.4 MySql version 5.6.9 PHP version 5.4.13 8 GB RAM Intel Xeon CPU 2.93GHz (4 ...
0
votes
1answer
17 views

GravityForms Limit Submission Per Time Period by User or IP by 30 minutes?

I am following this DIY code by GravityWiz but the author doesn't mention how to make the code work with 30 minutes, 1 hour, 2 hours, etc...? He only explains how to make it work with 24 hours - ...
0
votes
0answers
64 views

How to add a Custom Mailchimp AJAX Newsletter Subscribe Form

I want to add a custom Mailchimp AJAX Newsletter Subscribe Form to my WP Blog. I found this tutorial and have followed it: http://neal.codes/blog/custom-mailchimp-ajax-newsletter-subscribe. I've got ...
0
votes
2answers
59 views

Show only one post for each author ( Page loads too slow )

I want to show only one latest post by each author and found this code that it working. However, it takes too long to load the page since I have over 100K authors and 100K posts in database. How can I ...
0
votes
0answers
20 views

Add custom functionality on WooCommerce complete button

I've a situation to add some data to the database tables on order status completed button. I can see the url in class-wc-admin-post-types.php Can someone help me for any hook? Or how the ...
0
votes
2answers
23 views

Plugin PHP write permissions

I wrote a plugin in which one of the PHP files itself opens and writes another small text file. How to grant this PHP file the right permissions?
0
votes
0answers
14 views

Changes in header.php not reflecting

I edited <meta name="author" content="my_new_value"> in header.php of the parent theme. But the same old value is displayed. I've tried switching themes but this didn't work. What could be ...
0
votes
0answers
34 views

Custom post excerpt not translating in WooCommerce product page

I am trying to show the translation of an excerpt of custom post that is associated with a WooCommerce product. The excerpt always shows in default language but using the same code used to work for me ...
0
votes
1answer
28 views

zip unzip attachments in wordpress

my client using easy digital download plugin for sell their photos. They upload a zip file that contain many photos and sell this zip file. My need is to extract this zip file and display the images ...