Permalinks: custom post type -> custom taxonomy -> post

I am having trouble working with WordPress rewrite rules, and could use some help. I have a custom post type called _shows_. All shows have a single custom taxonomy category _show-category_. A _show_ will never have more than one _show-category_. I would like my urls to route in this manner: www.mysite.com/shows/ => archive-shows.php www.mysite.com/shows/%category%/ => … Read more

Need help with add_rewrite_rule

SOLUTION I’ve gone with Update 3 and have got it working. What I had misunderstood, was that I believed that a rewrite rule would change designers/?designer=some-designer&bid=9 to /designers/some-designer. But it is of course the other way around. I’ve been doing some research, but I don’t quite get how to use add_rewrite_rule(). This post is pretty … Read more

How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I’ve been combing this site and google for the answer and I’ve come up completely empty. Basically I want to do exactly what this post asks, but I need a hierarchical taxonomy. The answer given in that post works great, but only with a single level taxonomy. Is it possible to do what I want? … Read more

Is it possible to get a page link from its slug?

Is it possible to get a page’s permalink from the slug alone? I’m aware that you can get the page’s permalink from the ID using get_page_link(): <a href=”https://wordpress.stackexchange.com/questions/4999/<?php echo get_page_link(40); ?>”>Map</a> I’m curious if there is any way to do the same with the slug of a page – like this: <a href=”https://wordpress.stackexchange.com/questions/4999/<?php echo get_page_link(“map’); … Read more