Linked Questions

-1 votes
1 answer

How to use same email for multiple users? [duplicate]

This is a newbie follow-up question on the solution for how to use the same email address for multiple users presented here: How to use same email for multiple users My question: where do I add ...
Mike Smith's user avatar
99 votes
7 answers

Where to put my code: plugin or functions.php?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php? There are many cases and many debates about that topic, mostly because there are ...
fuxia's user avatar
  • 107k
35 votes
8 answers

Stop WordPress automatically adding <br> tags to post content

Is there a way to stop WordPress from automatically inserting <br> tags when adding returns in the WordPress text editor. I would like for it to behave more like a code editor where I can ...
mvaneijgen's user avatar
30 votes
2 answers

How To Add Custom Form Fields To The User Profile Page?

The user profile page has the following fields: Username First Name Last Name Nickname Display name Contact Info E-mail Website AIM Yahoo IM Jabber / Google Talk How can more fields be added to ...
rsman's user avatar
  • 2,290
12 votes
2 answers

How to update page status from publish to draft and draft to publish

I am trying to figure out how to write the code that will allow me to do the following with pages of a WordPress blog. I need to have something where I specify which page ID's I want to list (about ...
user avatar
15 votes
6 answers

How to search for (partial match) display names of WordPress users?

I need to create a search page that will display anything related to the supplied search. i.e. comments containing it, events, posts, CPTs and users with that name. How can I search for users in the ...
hannit cohen's user avatar
  • 1,521
11 votes
1 answer

WooCommerce: List All Categories

I'm using the WooCommerce plugin with WordPress and within my theme I'd like to list all categories within a navigation menu with PHP. I've tried using woocommerce_product_categories(); but I don't ...
Edd Turtle's user avatar
14 votes
5 answers

Marking future dated post as published

Use case: I have a post type that relates to a music show. The 'show time' is grabbed through the post publish date which is set to some time in the future. I've found a function that takes future ...
curtismchale's user avatar
  • 2,599
13 votes
2 answers

Changing WooCommerce Display Price Based on User Role & Category [closed]

In wordpress with WooCommerce, I'm looking to display a different price based on a user role (wholesaler, dealer, etc) AND based on the category. There's a dynamic pricing plugin that displays these ...
Tricky Buddha's user avatar
5 votes
5 answers

Make thumbnails in woocommerce replace the main image instead of opening fancybox

I would like the thumbnails underneath the main image on the single product page to replace the main image when they are either clicked or on hover, I prefer hover. Right now the thumbnails just open ...
Sam's user avatar
  • 114
4 votes
5 answers

Make future posts visible to the public—not just within WP_Query

I know I can publicly show future posts in a loop using 'post_status' => 'future' in WP_Query. But clicking on a future post's permalink will result in a 404 if you are not a logged-in user. ...
supertrue's user avatar
  • 3,016
5 votes
6 answers

How to show a under construction page for a domain but still be able to work on index.php?

I installed a WordPress for a domain name. When I use this domain name will point to index.php in my template. I want show a under construction page for this domain name, but the other hand I still ...
James Xu's user avatar
3 votes
1 answer

All-in-One Event Calendar: Custom Query - Getting each event Instance [closed]

I am using the All-in-One Event Calendar by Timely, and I would like to display upcoming events from the events calendar in a carousel on a separate page, and I need to get the event information. I ...
CourtFantinato's user avatar
7 votes
2 answers

How to force Wordpress to temporarily switch locale (using qTranslate)? [closed]

I have a multi-language store running WooCommerce and qTranslate, and am trying to setup multi-language customer emails. The problem is, the "order complete" email gets sent from the admin backend, ...
olex's user avatar
  • 261
4 votes
4 answers

One Child Functions.php for Multiple Child Themes

I have a wordpress setup that I use for clients with around 30 or so child themes that they can choose from. Each child theme has it's own functions.php file currently. Is it possible to setup just ...
Tory's user avatar
  • 219

15 30 50 per page