I would like to achive the following link structure on my site: /properties/ -> a properties page with properties CPT, page 1. /properties/page/2 ...
-
May 24, 2022
- 0 Comments
I want to access my post with id 17 like this: http://localhost/archives/17/moot-bla-foo-ramble In other words, the id shall decide, everything thereafter may (or ...
-
May 24, 2022
- 0 Comments
I use Custom Post Types. I try this: functions.php add_action( 'admin_init', 'flush_rewrite_rules' ); Now I’d like to remove this again. I try this: ...
-
May 24, 2022
- 0 Comments
I am trying to create a custom Rewrite URL something like function add_my_rule() { global $wp; $wp->add_query_var('state'); $wp->add_query_var('state_destination'); add_rewrite_rule('destination/([0-9]+)/([^/]*)/page/([0-9]+)','index.php?pagename=destination&state=$matches[1]&state_destination=$matches[2]&paged=$matches[3]','top'); add_rewrite_rule('destination/([0-9]+)/([^/]*)','index.php?pagename=destination&state=$matches[1]&state_destination=$matches...
I’d like to be able to have multiple permalinks for the same underlying post (for i18n reasons) – eg http://www.example.com/my-custom-post-type/this-is-a-cool-article http://www.example.com/mon-type-de-poste-personnalise/cest-un-article-sympa Both pointing ...
-
May 24, 2022
- 0 Comments
I’ve been beating my head against the wall for a few days trying to figure this out. I have a custom post type ...
-
May 24, 2022
- 0 Comments
My question comes from this one. I have never really touched on rewrite rules as frankly, they still do not make sense to ...
-
May 23, 2022
- 0 Comments
I have been stuck on this for hours and tried all these different methods but none seem to work. I’ve seen other threads ...
-
May 23, 2022
- 0 Comments
I’m building a site where every state and city in the US has a landing page. I have a database of every city, ...
-
May 23, 2022
- 0 Comments