Community Forums › Forums › Archived Forums › General Discussion › Grid Loop in Site Archives
- This topic has 12 replies, 2 voices, and was last updated 11 years, 1 month ago by nutsandbolts.
-
AuthorPosts
-
November 10, 2013 at 2:31 pm #72107liannefMember
Hi There!
I would love to use the grid loop for my site archives. It's working everywhere else on the site but this page. Currently they look like this http://themakeupgirl.net/archive/
I am using the Mocha theme
Any help you could give would be appreciated!
Thank you!!
http://www.themakeupgirl.netNovember 10, 2013 at 4:26 pm #72130nutsandboltsMemberIt seems like something is up with your archives... When I try to view your category pages, I'm getting the long list like on your archive page instead of the post archives. For example, if I click on Popular Categories > Beauty News in your nav, I'm being sent to a page (http://themakeupgirl.net/beauty-news/) instead of the category archive (http://themakeupgirl.net/category/beauty-news/). If I try to visit the category archive manually, I get redirected to your homepage.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 10, 2013 at 5:49 pm #72171liannefMemberHey Andrea,
I was trying something - it's back now LOL
November 12, 2013 at 2:08 pm #72545liannefMemberHey Andrea,
Any idea how I can do the grid on that link?
-Lianne
November 12, 2013 at 2:29 pm #72554nutsandboltsMemberThe easiest way is the Genesis Grid Loop plugin - you can choose which pages show the grid and which ones don't.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 12, 2013 at 2:44 pm #72557liannefMemberDoes that conflict with the grid loop code that is already in the theme?
November 12, 2013 at 2:45 pm #72558nutsandboltsMemberIt shouldn't, as long as you don't select the homepage (or wherever the loop is being used by the theme) in the plugin settings.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 12, 2013 at 2:50 pm #72559liannefMemberOkay, I have the plugin installed. But there isn't anyplace to specify what pages only this
Enable on:
Blog Home Category Archives Tag Archives Author Archives Search Results
Is there a shortcode to use it on a page?
November 12, 2013 at 2:51 pm #72560nutsandboltsMemberNo, but if you use the automatically-generated category archives as I mentioned before (instead of creating a page manually for each category), you can check the category archives box and it will show up on all of them.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 12, 2013 at 3:09 pm #72561liannefMemberThey aren't pages - they just have the "category" stripped via the Yoast plugin. Those are the actual categories....I just want to be able to display a grid on a page instead of this list that appears (i think I'm using the archive template) http://themakeupgirl.net/archive/
November 12, 2013 at 3:10 pm #72562nutsandboltsMemberOkay, in that case make a template called myarchive.php or something, stick the grid loop in it, and assign it as the template for that page.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 12, 2013 at 9:28 pm #72613liannefMemberHey Andrea,
I added this code to a new .php file and uploaded it but it's not showing in my template options for the page
<?php remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'child_grid_loop_helper' ); /** Add support for Genesis Grid Loop **/ function child_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 0, 'feature_image_class' => 'alignleft post-image', 'feature_content_limit' => 0, 'grid_image_size' => 30, 'grid_image_class' => 0, 'grid_content_limit' => 250, 'more' => __( '[Continue reading]', 'genesis' ), ) ); } else { genesis_standard_loop(); } } genesis();
November 12, 2013 at 10:49 pm #72632nutsandboltsMemberYou need a heading at the top (right under the opening PHP tag) to let WP know it's a template file:
<?php /* * Template Name: My Custom Template */
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.