How can we help?

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

Home Forums PokaTheme support Adding content to archive page for reviews

  • This topic has 8 replies, 3 voices, and was last updated 1 month ago by Mio.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #7197
    utg
    Participant

    Hi

    I am currently working on changing a couple of my sites to pokatheme V3. I used to have my reviews as pages under /casino-bonus/review-title etc. I would like to keep this structure so that I don´t need to make any redirections. I have seen that I can change the slug to casino-bonus, but then I get an archive page where I can´t add any content. Is it possible to keep my old page as the slug or somehow add the content to the archive page?

    Thanks in advance!

    #7251
    admin
    Keymaster

    Hi!

    You can disable the archive pages for the reviews with the following snippet:

    `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[‘has_archive’] = false;
    }

    return $args;
    }`

    If you add the above to your functions.php child theme then the archive page for this CPT is going to be disabled and you can use a page with the same URL and customize it as you wish.

    #11452
    Mio
    Participant
    This reply has been marked as private.
    #11453
    Mio
    Participant
    This reply has been marked as private.
    #11456
    admin
    Keymaster

    Hi Mio,

    Which theme you are using? The above snippet should disable the archive template from your site and then you can create a page with the similar URL.
    Please also try to refresh your permalinks afterwards.

    #11460
    Mio
    Participant
    This reply has been marked as private.
    #11461
    Mio
    Participant
    This reply has been marked as private.
    #11470
    admin
    Keymaster

    Please send us an email with your issue and an FTP and wp-admin administrator account in order to check it.

    #11475
    Mio
    Participant
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.