How can we help?

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

Home Forums PokaTheme support More content to the page

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #14734
    fietspankrukvor
    Participant

    Hello,

    I’d like to redirect the /review CTP archive page to a page with content. I tried to paste the following code it worked for a day but now it’s redirecting me to the classic /review archive page with no chance to customize it. Can you please help me out?

    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’] = ‘myslug’;
    $args[‘labels’][‘name’] = ‘myname’;
    $args[‘has_archive’] = true;
    }

    return $args;
    }

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.