Excluding a Certain Page from Archives – Minimum Pro

Community Forums Forums Design Tips and Tricks Excluding a Certain Page from Archives – Minimum Pro

This topic is: not resolved

Tagged: 

This topic contains 5 replies, has 4 voices, and was last updated by  Ari Herzog 6 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #60283

    computerkitten
    Participant
    Post count: 101

    I want to exclude a Page from being listed on the Archives page and this is with the Minimum Pro theme. Is there a plugin that can accomplish this?

    Thanks!
    CK

    #60353

    Sridhar Katakam
    Participant
    Post count: 1018
    #60562

    computerkitten
    Participant
    Post count: 101

    Thank you it looks like that Edit will work! I appreciate your time!

    CK

    #92770

    Ari Herzog
    Participant
    Post count: 11

    Related question: I used to have a custom archive layout using Focus and am now using Minimum Pro, too. But when I copy the file over, and refresh the archive page in the editor, nothing happens? Is there a tweak I need to make from one child to the other? Can you look at the below code? Thanks!

    <?php
    /**
     * Template Name: Archive
     * This file handles archives pages.
     *
     * This file is copied from Genesis and edited for Focus.
     * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
     * @link     http://www.studiopress.com/themes/genesis
     */
    
    /** Remove standard post content output **/
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    
    add_action( 'genesis_post_content', 'genesis_page_archive_content' );
    
    function genesis_page_archive_content() { ?>
    
    	<div class="archive-page">
    
    		<h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
    		<ul>
    			<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
    		</ul>
    
    		<h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
    		<ul>
    			<?php wp_get_archives( 'type=postbypost&limit=50' ); ?>
    		</ul>
    
    	</div><!-- end .archive-page-->
    
    	<div class="archive-page">
    
    		<h4><?php _e( 'Monthly:', 'genesis' ); ?></h4>
    		<ul>
    			<?php wp_get_archives( 'type=monthly' ); ?>
    		</ul>
    
    	</div><!-- end .archive-page-->
    
    <?php
    }
    
    genesis();

    I am a storyteller. I moved my blog from Thesis to Genesis in April 2013. I’m still learning.

    #92789

    braddalton
    Participant
    Post count: 9794

    No need to copy over parent theme framework files to your child theme to customize the output of any query when you can use pre_get_posts.

    However, if you still want to use the template, try changing the hooks http://my.studiopress.com/docs/genesis-loop-hooks-comparison/

    To limit posts per page, you can simply use a custom function like this: http://wpsites.net/web-design/customize-archive-pages-conditionally-using-pre-get-posts/


    #92824

    Ari Herzog
    Participant
    Post count: 11

    This is helpful, Brad. I hadn’t realized the coding changed in Genesis 2. Thanks!


    I am a storyteller. I moved my blog from Thesis to Genesis in April 2013. I’m still learning.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.