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...
  • May 24, 2022
  • 0 Comments
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