Community Forums › Forums › Archived Forums › Design Tips and Tricks › Excluding a Certain Page from Archives – Minimum Pro
Tagged: archives
- This topic has 5 replies, 4 voices, and was last updated 11 years, 11 months ago by
Ari Herzog.
-
AuthorPosts
-
September 2, 2013 at 1:15 pm #60283
computerkitten
MemberI 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!
CKSeptember 2, 2013 at 10:43 pm #60353Sridhar Katakam
ParticipantSeptember 3, 2013 at 9:37 pm #60562computerkitten
MemberThank you it looks like that Edit will work! I appreciate your time!
CK
February 27, 2014 at 10:07 pm #92770Ari Herzog
MemberRelated 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.
February 28, 2014 at 3:36 am #92789Brad Dalton
ParticipantNo 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/
February 28, 2014 at 9:29 am #92824Ari Herzog
MemberThis 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.