Custom permalink structure for custom post types including multiple taxonomy
The goal is to have a structure like this: example.com/tax_1/tax_2/post_name
The goal is to have a structure like this: example.com/tax_1/tax_2/post_name
I have a very peculiar requirement, hopefully, I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, let’s say the URL is like this:
I’m developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, there should be the next step which will require more information. Lets say that the first page with form would be located at www.domain.tld/custom-page/ and after successful form submission, the user should be redirected to www.domain.tld/custom-page/second. Template with HTML elements and PHP code should be also custom.
SOLUTION
I’m trying to create a custom API endpoint in WordPress, and I need to redirect requests to a virtual page in the root of WordPress to an actual page that ships with my plug-in. So basically, all requests to the one page are actually routed to the other.
Is there a good tool to analyze my rewrite rules? I always get confused with the regexes and the parameter replacements. I have created something myself and will post it here so others can use it, but please feel free to add other tools! Answers: Thank you for visiting the Q&A section on Magenaut. Please … Read more
I’m trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type
Hi to the community,
is it possible to change the default username slug to nickname if is available?
This answer provides the code for a query that returns an OR match on a taxonomy term:
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.