Creating custom post type and taxonomy archives and pretty URLs

To achieve permalinks like http://example.com/localpage/%post_name%/, you will need to set the rewrite argument when registering the custom post type: $annoucement_args = array( … ‘rewrite’ => array( ‘with_front’ => false ), … ); I don’t think that using custom taxonomies is the best idea here. Why not use custom meta boxes instead? See this WP Explorer … Read more

Loop for custom-post-type comparing taxonomy terms for “related” posts?

Change your $args array a little bit: $args = array( ‘post_type’ => array( ‘my_projects’ ), // it need to get the posts from this post_type ‘order’ => ‘DESC’, ‘posts_per_page’ => 5, ‘project_tags’ => $term // search taxonomy ); Other ways to search for taxonomy terms can be found here in the WordPress Codex pages. Answer … Read more