Permalink error after update post
-
Hello,
I have change my permalinks with the code :
add_action("adverts_post_type", "customize_adverts_post_type"); add_action("adverts_register_taxonomy", "customize_adverts_taxonomy"); function customize_adverts_post_type( $args ) { if(!isset($args["rewrite"])) { $args["rewrite"] = array(); } $args["rewrite"]["slug"] = "viap-community"; return $args; } function customize_adverts_taxonomy( $args ) { if(!isset($args["rewrite"])) { $args["rewrite"] = array(); } $args["rewrite"]["slug"] = "viap-categorie"; return $args; }My problem is when I update an post, all my link in wpadvert give me a 404 error, And it will repare when I manually upadate the permalinks of my website.
Do you have a solution?
Thank
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Permalink error after update post’ is closed to new replies.