Thread Starter
efoula
(@efoula)
Here’s the question on WordPress Exchange … check the question link.
With this in your theme’s functions.php wp_get_archives() will use the custom post type event:
add_filter( 'getarchives_where', 'wp_get_archives_post_type' );
function wp_get_archives_post_type( $where ) {
return "WHERE post_type = 'event' AND post_status = 'publish'";
}
Custom post types don’t have date based archives with urls like this yoursite.com/event/2013/10/
Thread Starter
efoula
(@efoula)
Thank you for your reply.
I need WP searching for the custom meta box (start event date) instead of the post publish date.
Got it?