Reputation
46,577
Next tag badge:
98/100 score
66/20 answers
Badges
2 29 54
Newest
 Good Answer
Impact
~1.6m people reached

Jan
29
comment How to order by datediff in WP loop?
You can't do it with WP_Query arguments, but there are filters that let you modify the SQL directly, like posts_orderby
Jan
28
comment Website pagespeed problem
A Google search for "WordPress expiry headers" will yield some useful results.
Jan
28
comment single-{cpt}.php ignored
how are you loading the archive template from the plugin directory? that's not something that would happen without some sort of filter code loading it from there.
Jan
28
comment Remove base slug in CPT & CT, use CT in permalink
what are your post permalinks set to?
Jan
28
answered Allow guest to update custom post met using ajax
Jan
28
comment Assigning custom title in tag template
are you using wp_title() to output titles?
Jan
28
comment get_posts ( $args) failing when called by AJAX
you need to specify post_type in your $args array, it defaults to just post if you don't specify anything.
Jan
27
comment Sort by meta value num, but ignore zero value
consider not saving anything under the key if there is no price, rather than zero. you can query for posts both where a meta key does and does not exist, and have the posts where it does exist appear first.
Jan
27
comment wp_enqueue_scripts not working in custom theme
Does your theme have wp_head and wp_footer in the templates?
Jan
27
comment Custom query for tag and custom tag from 2 post type
no, 'taxonomy' => 'post_tag' inside the tax_query for built-in tag taxonomy.
Jan
27
comment Custom Taxonomy not Working
you can't have a post type and a taxonomy with the same name.
Jan
27
comment Update broke rewrite rule
You've disabled all other plugins and tried your code with a default core theme?
Jan
27
comment add_action shortcut?
That's the same as your first example, __return_true is a helper function in core. There's also false, zero, null, empty_string and empty_array.
Jan
27
comment add_action shortcut?
Your second example makes it nearly impossible to remove that action. Don't take shortcuts.
Jan
27
comment Why does my URL rewriting only work using two different methods?
Do the others actually work though? If you're not ending up with a successful main query, you may see your content, but the wrong status code header is being sent. I suggest one of the two methods I mention in my first comment, I've answered many rewriting and endpoint questions here with working examples if you look around.
Jan
27
comment How to show custom taxonomy in the permalink?
If that plugin doesn't let you modify the post type parameters, then you'll need to register the post type yourself.
Jan
26
comment Custom query for tag and custom tag from 2 post type
The built-in tag taxonomy is post_tag.
Jan
26
comment How to show custom taxonomy in the permalink?
Possible duplicate of Permalinks: custom post type -> custom taxonomy -> post
Jan
26
comment Update broke rewrite rule
It would seem some sort of query is happening that isn't succeeding, I would look around for any code in the theme or a plugin that would be altering the query through an action or filter.
Jan
26
comment Why does my URL rewriting only work using two different methods?
Have you flushed rewrite rules after adding new ones? The problem with this method is that it short-circuits the load process after an unsuccessful main query. I would look around rewriting questions here for other strategies, like using a page as the rewrite rule target, or simulating a page object dynamically, so the whole load process can happen successfully.