WordPress Answers Weekly Newsletter
WordPress Answers Weekly Newsletter

Top new questions this week:

This CSS Stuffing Works, But Is This A Good Practice?

I am trying to include a dynamic css in my plugin, I have been searching anywhere but doesn't find any case that is similar to what I do. And what I use to do it is by adding a css file directly into …

<admin> <css> <wp-options>  
asked by Ari Susanto 6 votes
answered by GhostToast 8 votes

Do I actually need to link my theme's style.css in the theme files

So I am developing a wordpress theme using a series of LESS files for the CSS. These compile using codekit to a combined and minifed stylesheet that I use for the theme's styling. I understand a …

<theme-development> <themes> <stylesheet>  
asked by harryg 5 votes
answered by toscho 4 votes

How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?

I've been playing around with code snippets which add meta data to admin searches. The best snippet I've found was written by Stefano on this question. However, it appears to have 1, annoying bug …

<plugin-development> <custom-field> <wp-admin> <search>  
asked by jnthnclrk 4 votes
answered by epilektric 2 votes

Why use if function_exists?

I noticed a lot of developers of WordPress themes would use this in functions.php if (function_exists('register_nav_menus')) { register_nav_menus (array('primary' => 'Header Navigation')); } …

<functions>  
asked by Greeso 4 votes
answered by Otto 5 votes

Is wp_is_mobile() effective?

I'm going to test the user agent to load a mobile template instead of the desktop theme. There are many mobile detection scripts out there. Does wp_is_mobile() function work well? What is your …

<theme-development> <mobile>  
asked by Andrea Puiatti 3 votes
answered by G. M. 5 votes

How can i change menu link when page content empty?

I have a menu with parent and child. I created menu from admin panel using Appearance >> Menus with selecting page. But some of my parent pages content empty so i want to set link(null) when page …

<theme-development> <menus>  
asked by syed.ahmed 3 votes
answered by epilektric 0 votes

Ajax template: how to handle head section

I know it's easy stuff, but I'm new to this and I can't understand which is the best approach. Background The template I'm working on is a dual theme Desktop/Mobile, UA Sniffing based. Now I just …

<php> <ajax> <javascript> <mobile>  
asked by Andrea Puiatti 2 votes
answered by G. M. 4 votes

Greatest hits from previous weeks:

If is custom post type

I am looking for a way to test if a post is a custom post type. For example, in say the sidebar I can put code like this: if( is_single()) { //code here } I want code were I could do …

<custom-post-types> <conditional-content> <conditional-tags>  
asked by Adam Thompson 13 votes
answered by Szymon Skulimowski 29 votes

Adding a Taxonomy Filter to Admin List for a Custom Post Type?

I have created a Custom Post Type called 'listing' and added a Custom Taxonomy called 'businesses'. I would like to add a dropdown list of Businesses to the admin list for the Listings. Here is what …

<plugins> <custom-post-types> <wp-admin>  
asked by tarasm 50 votes
answered by MikeSchinkel 67 votes

Can you answer these?

Custom ReCaptcha Login

I'm trying to add ReCaptcha to my login page. I know there are many many plugins by per request I cannot use plugins. So far so good, I'm able to add the Captcha to my login but unable to show errors. …

<customization> <wp-admin> <login> <wp-login-form> <captcha>  
asked by Derp 2 votes

Bulk edit of EXIF data for jpeg images uploaded in the media library?

Although there's a number of plugins that display EXIF data in your posts or remove EXIF data altogether to save space, I couldn't find a solution to manually edit EXIF data for whole bunches of …

<images> <uploads> <media> <media-library>  
asked by Fulvio 1 vote

How to notify specific users when i'm posting/modifying a new post

Here's what I'm trying to do... I'm trying to send new submissions only to contractors requested. Using Role Scoper, I can select only users who can access the new submission. However, I am looking …

<users> <email> <save-post> <notifications>  
asked by Julien Fotnaine 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3