How can we help?

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

Home Forums PokaTheme support Replace the Review and List pages with my own to Edit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16890
    Andy Nelson
    Participant

    Hi,

    I want to be able to replace the archive Review page with my own so I can edit it.

    I also want to be able to replace the List page with my own so I can edit it.

    Could you give me the code so it applies to the latest Version 4 Pokatheme please?

    Thanks,

    Andy

    #16896
    Phil Dawber
    Participant

    Hi Andy, I’ve followed a few of your posts in the forum and it seems like you know you’re stuff, I’m struggling myself, I’ve had the wordpress theme a week now & still haven’t been able to alter anything or create my own affiliate reviews but i’m not too sure why. I’m hoping you’d be open to discussing this further with me, i’d love to hear more about what you’re working on also?

    Thanks,
    Phil

    #16913
    admin
    Keymaster

    Hi Andy,

    The code is the same just like in PokaTheme v3.

    function change_slug_affiliates_cpt( $args, $post_type ) {
    
    if ( $post_type == 'affiliates') {
      $args['has_archive'] = false;
    }
    
    return $args;
    }
    add_filter( 'register_post_type_args', 'change_slug_affiliates_cpt', 10, 2 );
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.