Custom archive page/Page Template

Homepage Community Forums Epik Theme Support Custom archive page/Page Template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17025
    Mason
    Customer

      I don’t see an Archive page template in Epik. I want to have a custom Archive page or something similar where I display a filtered list of post excerpts and some other custom content below the Page content.

      I’m actually (probably) using a Page Template for Feature pages which will have some content in the Page (like a regular Page does) but also with the use of a Custom Post Type (a Feature Detail) where there will be multiple Feature Detail excerpts displayed below the main Page content, as well as some other stuff (a customer testimonial).

      What would be a good starting point for something like this?

      Thanks!

      #17028
      Andykev
      Customer

        On your page settings, the Layout has “Archive” as layout option. There is also an “Archive Widget” if you want to use that on your Home page.

        The Archive PHP is in the parent theme: Genesis. In your Geneis Theme Options you can make some choices on how the Archive appears.

        <?php
        /**
         * Genesis Framework.
         *
         * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
         * Please do all modifications in the form of a child theme.
         *
         * @package Genesis\Templates
         * @author  StudioPress
         * @license GPL-2.0+
         * @link    http://my.studiopress.com/themes/genesis/
         */
        
        //* Template Name: Archive
        
        //* Remove standard post content output
        remove_action( 'genesis_post_content', 'genesis_do_post_content' );
        remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
        
        add_action( 'genesis_entry_content', 'genesis_page_archive_content' );
        add_action( 'genesis_post_content', 'genesis_page_archive_content' );
        
        /**
         * This function outputs sitemap-esque columns displaying all pages,
         * categories, authors, monthly archives, and recent posts.
         *
         * @since 1.6
         *
         * @uses genesis_a11y() to check for headings choice.
         * @uses genesis_sitemap() to generate the sitemap.
         *
         */
        function genesis_page_archive_content() {
        
        	$heading = ( genesis_a11y( 'headings' ) ? 'h2' : 'h4' );
        
        	genesis_sitemap( $heading );
        
        }
        
        genesis();
        <!--formatted--><!--formatted-->
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.