How can we help?

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

Home Forums PokaTheme support How to change the review link in pokatheme?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1803
    Ermin Rajic

    Hi guys and girls im just triyng the poke them for the first time on my site and i really like it but its also new for me so thereare some things im still struggelning on. For example right now i want my review links for ex so be and i cant figer out how to change this=( There is a way to change the breadcrums and choose a site the “review” links to but i want to change the link=( Anybody know how to do this?


    Hi Ermin,

    In your child theme inside functions.php you’ll find a snippet called “Change CPT slug”
    In specific:

    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; }

    You should activate your child theme in order to have the ability to make future changes and remove the comment from this snippet.
    After that you can change the word “affiliatesnewslug” with your own slug.

    This reply has been marked as private.


    In the breadcrumb the name you see is the label->name of the CPT.
    If you want to also change this Name you can change the above snippet with the following:

    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'; $args['labels']['name'] = 'Recension'; } return $args; }

    Krzysztof Olszewski

    That working great thanks, but how can i edit my page with review? Simple i have a website, and i want change content on my page How can i do it?



    First you have to disable archive page for the reviews by changing the code above to this:

    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'; $args['labels']['name'] = 'Recension'; $args['has_archive'] = false; } return $args; }

    Now we removed the archive page you can create a new custom page with the slug /review/.


    Hi guys,

    After changing the review slug, every new review I want to upload respond as expected.

    The issue is that the reviews I made live before the CPT slug change didn’t change their slug to the new one. (I flushed cached)

    Is there any way to make the change also retroactive?




    Have you tried to updated permalinks? Sounds like they need a nudge.

    Go to Settings -> Permalinks -> click save settings (no need to change anything) and the old reviews slug should be updated as well.

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