Reputation
527
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 9
Newest
 Revival
Impact
~62k people reached

  • 0 posts edited
  • 1 helpful flag
  • 41 votes cast
Jan
13
awarded  Revival
Nov
14
comment wp enqueue style on specific page templates
I think using is_page_template() is preferable since the page slug is easily changed. This solution, while it works fine, would break if the slug was changed. See kchjr's solution if anyone runs into problems in the future.
Nov
11
suggested rejected edit on Orderby menu_order doesn't work
Oct
11
comment How do I delete all UNUSED images from my uploads directory?
I'll second @BrunoMonteiro here. It's entirely possible to have a images that are not attached to a post.
Dec
22
comment Include content from one page to another
The clip was created per the instructions in the WordPress codex. I used extract, which Pieter didn't like, so it's updated.
Dec
22
revised Include content from one page to another
Updated, to please Pieter Goosen.
Dec
12
comment Can wp_query return posts meta in a single request?
meta_key and/or meta_query do not modify the type of results returned, only the query itself.
Dec
12
comment Can wp_query return posts meta in a single request?
The standard WP_Query does not return a posts meta data. The only options you have are to: 1) run get_post_meta on individual keys, 2) run get_post_custom to get all of a posts custom fields in one shot, or 3) create your own query using the $wpdb class (get_results()) to build your own return object. ($wpdb class documentation: codex.wordpress.org/Class_Reference/wpdb)
Dec
11
awarded  Citizen Patrol
Dec
10
comment using wp_footer hook in a plugin
@WaseemAbuSenjer - If you view the source of the page, is the HTML being added? It's possible the hook is echoing properly but is hidden due to styles. Also, try adding a priority higher than 5.
Nov
20
comment Cannot access install on subdirectory
Make sure you have an .htaccess file in your new subdirectory, along with a whole new site of WordPress files.
Nov
18
comment Enqueue custom jQuery UI theme to override Google CDN theme
You might find this helpful: stackoverflow.com/questions/8849684/…
Nov
18
revised Creating a Dev box from an existing production machine?
added 1078 characters in body
Nov
18
comment Creating a Dev box from an existing production machine?
Make sure you've copied over the .htaccess file in the root wp directory. There are specific rewrite rules that need to reside in there.
Nov
18
awarded  Yearling
Nov
18
revised Get all posts with a certain meta key, except for one with specific title
added 5 characters in body
Nov
18
comment Creating a Dev box from an existing production machine?
You can't access sub-blogs at all? Or just wp-admin?
Nov
18
answered Get all posts with a certain meta key, except for one with specific title
Nov
18
comment Set the background to a default image if there isn't a specified “featured image”
Your certain $src = get_bloginfo( 'stylesheet_directory') . '/lib/images/home1-1024x681.jpg'; returns an image? That the home1-1024x681.jpg image actually exists in your wp-content/themes/your-theme/lib/images/ directory? Try using get_stylesheet_directory_uri() or get_bloginfo('template_directory') instead of get_bloginfo( 'stylesheet_directory') .
Nov
18
revised Exclude categories For Custom post types
added 239 characters in body