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 3 posts - 1 through 3 (of 3 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.

    #17022
    food4
    Participant

    Hi! In the new version of the theme, only the slug in the breadcrumbs can be changed in the visualisation settings. We need code that will allow us to change the slug to the reviews https://site.name/REVIEW/affsite/

    Codes for theme version 3 do not work in the new version 4

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