• MyCoach

    (@bernard77176)


    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)
  • Plugin Author akyusa01

    (@akyusa01)

    Hi ?? Unfortunately customizing the plugin to meet your needs is not part of the support. The plugin is 100% GPL so you are free to make any changes you’d like.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post_id’ is closed to new replies.