Custom Post_id
-
Hello,
I would have liked to change, the name in the links is it possible with a snippet to do it, I can not replace it.
today I have :
https://monsite.com/cr3ativsponsor/stedurand/
I would like :
https://monsite.com/partenaires/stedurand/
I tried this, but without success:
add_action("register_post_type", "customize_sponsorts_post_type"); function customize_sponsorts_post_type( $args ) { if ( 'cr3ativsponsor' === $post_type ) { if(!isset($args["rewrite"])) { $args["rewrite"] = array(); } $args["rewrite"]["slug"] = "partenaires"; return $args; }
I will have the same question, for the taxonomy
Thank you in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post_id’ is closed to new replies.