Reputation
48,283
Next tag badge:
98/100 score
57/20 answers
Badges
2 33 59
Newest
 Yearling
Impact
~1.8m people reached

11h
comment get_terms showing link to category even if all posts are drafts
you set hide_empty to false in your code, this will show terms whether or not they have posts assigned.
Apr
29
comment add_filter() function misunderstanding
apply_filters gives you the option of altering $sections before it is returned from the function. if there are no filters added to onepage_sections, then apply_filters just passes the unaltered value through unchanged.
Apr
29
comment WP Meta Query - mixed AND / OR query doesn't work
if you're trying to get a postcode exact match, = is much faster than LIKE
Apr
28
comment Load get_page_templates into select menu
templates are keyed by name and don't have a slug or name, you're loop never terminates. see the codex page for get_page_templates for an example of what is returned by that function.
Apr
27
comment datetime jquery UI not showing after theme update
More likely that this is a result of JQuery version being updated with WordPress core update.
Apr
27
comment How Do I Attach Custom Taxonomies to a Custom Post Type?
are your taxonomies hierarchical or non-hierarchical? Have a look at the wp_set_post_terms codex page, which is what wp_insert_post uses to add the terms.
Apr
26
comment Problems implementing jQuery plugin
Look in your browser's error console for JavaScript errors.
Apr
26
comment Unable to get /%postname%/ permalinks working, 404 on all links
Do you see the server's 404 page, or a WordPress theme 404 page?
Apr
25
comment Passing Numbers & Letters in Query Strings
+ is not used for concatenation in php
Apr
24
comment CPT url rewriting : regular posts return 404 error
The simplest fix for this is to just use the default permalinks with product in the URL. This is how WordPress knows you are requesting a product when you visit those URLs. When you make the URL match the same structure as another post type, WordPress can no longer distinguish between the two types of requests, one rule will always "win" over the other. WordPress has to know what kind of thing it's looking for before it tries to find it in the database.
Apr
23
comment wp_enqueue_scripts doesn't work for template pages
Do your template pages contain the wp_footer function to output the scripts?
Apr
22
comment WP_Query (list) posts according to author's custom field
WP_Query can't do that. You need to query for authors, then query for each author's posts.
Apr
22
comment WP_Query (list) posts according to author's custom field
WP_User_Query works much like WP_Query. It's not clear what you're trying to query for though- posts by users who have a specific value in user meta?
Apr
21
comment How to display the requested post only?
WordPress creates the default query on each page automatically based on the requested URL. I'll guess you are probably creating your own query and outputting those results instead of just running the standard loop.
Apr
20
comment Frontend Post with JQuery AJAX to Php Issue
I suggest reading through AJAX in Plugins to learn how AJAX work sin WordPress.
Apr
19
comment get_post_permalink() and custom permalink rewriting
@Fafanellu did you remove global $post?
Apr
17
comment pre get posts set permalink in single
WordPress will redirect to enforce the slash, but you are short-circuiting that process by exiting too soon.
Apr
17
comment wordpress rewrite and keep url for page
have look at the parse_request, parse_query, and pre_get_posts actions. you should be able to detect when your rule is matched to add a function hooked to pre_get_posts to alter post_type before the query is run.
Apr
16
comment Custom URL rewrite with add_rewrite_rule
what are fotograf, gallery, and img? Are those registered query vars? Rewrite rules have to result in a successful main query that loads some type of WordPress object- a page, a post, an archive.
Apr
16
comment Form not working as it should in WordPress, but in a normal HTML site it does
no errors? jquery.validate.min.js is returning 404 and there are two syntax errors.