WordPress Development Stack Exchange Community Digest

Top new questions this week:

How can I make a custom post status private or draft?

I have the following code where the "private" value is set to true but posts with this status show up on the front end. In the admin add/edit screen the post shows "Visibility" as &...

post-status  
user avatar asked by Tommizzy Score of 1

Wordpress Global Var in Plugin but Outside Function

In the theme functions.php, a global variable is set. // This is in functions.php add_action( 'init', 'me_set_globals', 1, 1 ); function me_set_globals () { global $my_global; if (1==1) { ...

plugins plugin-development  
user avatar asked by Catsy Score of 1
user avatar answered by Tom J Nowell Score of 1

Custom Captcha validation on the registration form issue

I made myself a custom CAPTCHA SUM type and it's working , however even if I add the right sum, my customer will not be created, not sure why and how to debug this. Here is my code: The wp-content/...

woocommerce-offtopic captcha  
user avatar asked by Attila Naghi Score of 1
user avatar answered by Attila Naghi Score of 0

Greatest hits from previous weeks:

wordpress on localhost lamp doesn't let me install plugins

i've installed a LAMP server on my ubunutu 11.04. i've installed wordpress and hooked it right with the MySQL db. i've changed the permissions of the www-data group to read and write files. every ...

plugins installation ftp localhost  
user avatar asked by Asaf Chertkoff Score of 19
user avatar answered by mike23 Score of -1

Remove slug from custom post type post URLs

It seems that all web resources based on the subject of removing a custom post type slug ie yourdomain.com/CPT-SLUG/post-name are now very outdated solutions often referencing pre WP version 3.5 ...

custom-post-types posts urls slug  
user avatar asked by Ben Racicot Score of 82
user avatar answered by Nate Allen Score of 100

WP_Query with "post_title LIKE 'something%'"?

I need to do a WP_Query with a LIKE on the post_title. I started with this regular WP_Query: $wp_query = new WP_Query( array ( 'post_type' => 'wp_exposants', '...

wp-query sql  
user avatar asked by Ludo Score of 55
user avatar answered by Jan Fabry Score of 54

Retrieving a list of menu items in an array

I am currently am working on a custom theme. In this theme, I have a menu that I registered using register-nav-menu, and then I am displaying the menu to my web page using the wp_nav_menu function. ...

menus  
user avatar asked by Greeso Score of 22
user avatar answered by vancoder Score of 17

How to remove admin menu pages inserted by plugins?

I've got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { ...

customization admin wp-admin admin-menu  
user avatar asked by tmyie Score of 52
user avatar answered by tfrommen Score of 89

Using wpdb to connect to a separate database

I want to connect wpdb to another database. How do I create the instance and pass it the database name/username/password? Thanks

database wpdb mysql  
user avatar asked by Wadih M. Score of 107
user avatar answered by Wadih M. Score of 167

How to log out without confirmation 'Do you really want to log out?"?

Right now when I log out via: <a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a> it redirects me to the page where I need to confirm the log out. How to ...

logout  
user avatar asked by Derfder Score of 29
user avatar answered by ndm Score of 46
You're receiving this message because you subscribed to the WordPress Development community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3