404 Issue w/ Custom Post Type – using Meta for Permalink rewrite

Indeed, you need to add the rewrite tags. They indicate what can come in the place of your %cal_year% and similar tags: add_rewrite_tag( ‘%cal_year%’, ‘([0-9]{4})’ ); add_rewrite_tag( ‘%cal_month%’, ‘([0-9]{1,2})’ ); add_rewrite_tag( ‘%cal_day%’, ‘([0-9]{1,2})’ ); This works, but I don’t understand how: it seems to me something is missing to let WordPress know how it should … Read more

Exclude pages in archives results

Call the link with a query argument in which you pass the current post ID. If get_the_term_list returns a url address (the link href) you would need to append a argument to it. Then, on the archive page exclude that post ID before the loop, using something like: if(isset($_GET[‘related_to’])) query_posts(array(‘post__not_in’ => array(intval($_GET[‘related_to’])))); Update: I’ve looked … Read more