• Resolved slickk

    (@slickk)


    Good day,

    I am creating a site using the neve theme. I have used CPT UI and Advanced Custom Fields to create a custom post type (equipment). I would like to be able to create a custom archive page for this such as “archive-equipment.php”.

    I created a copy of the “archive-post.php” page found in the “wp-content/themes/neve/views” directory and named it “archive-equipment.php”.
    I left it in the same directory.
    When I make edits to “archive-equipment.php”, nothing happens to the archive page (mysite/equipment) for equipment. However, if I make changes to “archive-post.php”, the changes are seen on the archive page for equipment.

    Does anyone know how I can get “archive-equipment.php” to control the equipment archive section on my website?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I have the same question.
    Have you been able to solve it?

    Thanks,

    Same here. I want to use Neve instead of 2020, because of the sidebar and some other features. but I need CPT. The default themes are easier to customize.
    I have checked the Website and the FAQ from Themeisle, but nothing helped.

    Try moving your archive-equipment.php file up one level (so “wp-content/themes/neve” where the single.php file is. I suspect that the one in th “views” folder is getting called from some other Neve file WP doesn’t find archive.php in the “wp-content/themes/neve” directory. Based on WP Theme hierarchy (which I’m just learning about), I suspect that your archive-equipment.php in the “wp-content/themes/neve” directory will result in it getting chosen. If not, then you’ll probably have to muck around in the theme files to find where the call to the archive-post.php file in the “wp-content/themes/neve/views” folder is being called from and see where that falls in the WP Theme hierarchy to determine where to put it or change the logic in the code on the calling page so that your template gets used for your CPT.

    Alternately, create a child theme & put your CPT templates there instead (the child theme will persist even when Neve upgrades). This is probably your best bet

    Thanks ??

    Hi there,

    Editing the archive-post.php file within the views folder is possible by copying the views folder and the file within the child theme.

    You can download a child theme for Neve from this guide and follow the steps mentioned there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom archive page for neve theme’ is closed to new replies.