Custom post types, taxonomies, and permalinks
This is driving me nuts and I’m sure it’s simple but nothing I search for comes up with a simple structure (everything is very complex).
This is driving me nuts and I’m sure it’s simple but nothing I search for comes up with a simple structure (everything is very complex).
How can I make a link like this?
So this is driving me absolutely insane. I’ve spend days trying to fix this and I can’t work out why this is so difficult as surely this is a very common permalink structure!
I have two authors pages, one displays about 5 posts. Then I’m trying to setup another page that will be all of their posts. I have created a template called moreauthorposts.php and I’m trying to pass the author variable to this page. Problem is if i pass domain.com/more-author-posts?author=johndoe it gets stripped out. How can I retrieve this value? Is this even possible in wordpress? I know WP Rewrite is jacking my URL structure somehow I’m just not sure.
Is there any way to add the .html extension to custom post types without plugin ?
Is there a WP function to automatically get the correct URL of the current page?
Meaning if I just opened a single post, the function returns the same as get_permalink(), but if I’m on a paginated instance of a page (when paginating through the comments), the function returns the same as get_pagenum_link(get_query_var('paged')) would do.
Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that:
I’m creating som custom templates in WordPress and I’m passing some data in the URL’s.
I am trying to set up a multi-level custom post type structure with permalinks that look like authors/books/chapters, with authors, books, and chapters all set up as their own custom post type. For example, a typical URL on this site might look like example.com/authors/stephen-king/the-shining/chapter-3/
I have several custom post types, which are properly structured as /%post_type%/%postname%/, however I wish to have the same effect for regular blog entries: /blog/%postname%/