Filtering custom posts with Ajax

As pointed by @mmm, I just needed to change the ‘append()’ for ‘html()’. And the use of ‘-‘ instead of ‘_’ in the ‘action’ part. I asked him to post it as an answer so I could close the question, but I guess he didn’t see. So, my final AJAX code is: $(“#opt_filter”).change(function () { … Read more

How to filter custom post type archive by meta value

Like Bainternet said in comments, you’ll need to mess with add_query_var as well as add_rewrite_rule. We usually do something similar to: global $wp; $wp->add_query_var( ‘some_var’ ); add_rewrite_rule( ‘some/path/([^/]+)/?$’, ‘index.php?some_var=$matches[1]’ ); See this WordPress Trac ticket, as well as documentation on add_query_var and add_rewrite_rule

Uploading DB to server from local is not matching the post dates

WordPress uses the date_default_timezone_set() function to set the server timezone. This is based on the timezone offset setting under Settings->General. Check your setting to make sure it matches your timezone at: http://yourdomain.com/wp-admin/options-general.php If changing your timezone via the setting doesn’t work, there’s probably nothing you can do to change this without touching your server configuration. … Read more

Tag list & tag index for custom post type

There is a WordPress function called get_terms. This will provide you with the output of your custom taxonomy throughout your website. I’ve also included insight as to how to use WordPress’s native tag support when you register your custom post type and custom templates for taxonomies. If you wish to retrieve all instances of your … Read more