redirect automatic page that serves custom posttype content

I solved my own question without breaking the url structure logic, as Krzysiek Dróżdż (thanks!) suggested. I changed the page named /page-actueel-blog to the custom-post-type ‘archive’ template. Pretty obvious, but I thought archive was something else entirely. For whoever may have the same doubts: the archive template is the level up from domain.com/blogpost (single-mycustomposttypename.php); a … Read more

Create Dynamic SEO Friendly URL for Virtual Page

One approach could be to create a rewrite rule that will catch the 3 variables and provide them as parameters that can be passed on to your job template. Assuming your template slug is “job”: function jobquery_rewrite_rule() { add_rewrite_rule( ‘^job/([^/]*)/([^/]*)/([^/]*)/?’, ‘index.php?pagename=job&state=$matches[1]&city=$matches[2]&job=$matches[3]’, ‘top’ ); } add_action( ‘init’, ‘jobquery_rewrite_rule’ ); After inserting this action into your theme, … Read more