How can we help?

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

Home Forums Poka support How to remove, or change to "review"

This topic contains 4 replies, has 3 voices, and was last updated by  admin 1 week, 1 day ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #963

    Juup3
    Participant

    https://demo1.pokatheme.com/review/888poker/ Can i change that “review” name or can i delete it? I want to address is like https://demo1.pokatheme.com/888poker/

    #964

    admin
    Keymaster

    Hi Juup3,

    You can change your Custom post type slug with the following snippet:

    
    //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'] = 'affiliatesnewslug';
        }
    
        return $args;
    }
    

    I don’t recommend removing the slug completely because if you have pages with the same title you are going to have a conflict.
    But if you want you can try this plugin : https://wordpress.org/plugins/remove-slug-from-custom-post-type/

    • This reply was modified 4 months, 2 weeks ago by  admin.
    #1219

    igc
    Participant

    And what if it’s a multilanguage site, how can we translate this slug into other language? (..using v2 here)

    #1221

    igc
    Participant

    I guess it only can be done with WPML isn’t it? (…not Polylang or free plugins)

    • This reply was modified 1 week, 1 day ago by  igc.
    #1224

    admin
    Keymaster

    Hi igc!

    With WPML you can translate the slug in CPT, I’m not sure if this can be done with other plugins… (I think this can be done also with Polylang Pro but I’m not sure)

    In the above code you can also change it to:

    $args['rewrite']['slug'] = __('affiliatesnewslug', 'poka');

    but I don’t think it’s going to help you if you want to make your site multi language.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.