How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Modifying slug from pokatheme – tried all

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16073
    C
    Participant

    Hi,

    I read your forum and tried to apply the solutions to change the slug from reviews to casinos and also list to comparisson, here you can see the code Im using. It does not work. I try to create new reviews but they still show a slug type /review/casinoname instead of casinos/casinoname (casinos should be my newslug).

    Also for the categories, they still appear as /list/

    //Change CPT slug
    /*
    add_filter( ‘register_post_type_args’, ‘change_slug_affiliates_cpt’, 10, 2 );

    function change_slug_affiliates_cpt( $args, $post_type ) {
    if ( $post_type == ‘affiliates’) {
    $args[‘rewrite’][‘slug’] = ‘casinos’;
    $args[‘has_archive’] = false;
    }
    return $args;
    }

    }*/

    /*add_filter( ‘register_taxonomy_args’, ‘change_slug_affiliates_tax’, 10, 2 );
    function change_slug_affiliates_tax( $args, $taxonomy ) {

    if ( $taxonomy == ‘lists’) {
    $args[‘rewrite’][‘slug’] = ‘comparisson’;
    }

    return $args;
    }*/

    #16098
    admin
    Keymaster

    Hi!

    You can also change the slug from Theme settings -> Translations.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.