I have two custom rewrite rules: add_rewrite_rule('foo/bar/?', 'index.php?post_type=foo', 'top'); add_rewrite_rule('foo/bar/([a-z]+)/?', 'index.php?post_type=foo&bar=$matches...
I have an unusual use of add_rewrite_rule (is there a usual use?) and I am getting some unexpected behavior. First here is my ...
-
June 2, 2022
- 0 Comments
I’ve got a custom post type. Let’s call it books. I’m adding a new rewrite endpoint called pages. I want the url /books/pages/2/ ...
-
June 2, 2022
- 0 Comments
I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I ...
-
June 2, 2022
- 0 Comments
The website uses – A) A hierarcical Custom Post Type “Destination” to support the following structure, so each tier of the hierarchy could ...
-
June 2, 2022
- 0 Comments
Every day my WordPress blog is going from a static page, back to “your latest posts”. I am not setting this setting, something ...
-
June 2, 2022
- 0 Comments
I’m trying to list attachments based on different taxonomies. Right now it only work for the basic url (no pagination added). For example ...
-
June 1, 2022
- 0 Comments
I’ve found various questions about this issue, and I still can’t get this to work. I have a post type called “product” and ...
-
June 1, 2022
- 0 Comments
I’m trying to re-write permalink structure with my own custom url in WordPress for a Divi Theme “project” I have already changed the ...
-
June 1, 2022
- 0 Comments