Community Forums › Forums › Archived Forums › Design Tips and Tricks › Grid Loop – want a loop on one Blog listing page but not others
Tagged: blog page with content, genesis grid, grid loop
- This topic has 7 replies, 2 voices, and was last updated 10 years, 10 months ago by Brad Dalton.
-
AuthorPosts
-
June 20, 2013 at 4:35 pm #46945csbeckMember
I'm trying to implement the Genesis Grid Loop on a specific PAGE that is only showing POSTS in a given CATEGORY.
http://grglaw.beckerstudio.com/our-professionals
This page is using the page_blog.php - which shows the page content above the POSTS in this BLOG page - http://my.studiopress.com/snippets/blog-page-content/The content shows up and the POSTS show up as well. But this is also implemented on another page where I don't want the posts to be in a grid:
http://grglaw.beckerstudio.com/rulings-and-decisionsWhat's the best way of showing the Grid Loop for one page and set of data and not for another page and set of data?
Do I need to create another template? If yes, I need some help with that.
I've also tried Bill Ericson's "A better, and easier, grid loop" - http://www.billerickson.net/a-better-and-easier-grid-loop/
But the results were not successful.Thanks for any help.
http://grglaw.beckerstudio.com/our-professionalsJune 20, 2013 at 4:56 pm #46947Brad DaltonParticipantCustom grid loop with conditional tag. You can use either a grid which may require some CSS tweaking or use the featured settings which is easier.
Or there's a plugin
June 20, 2013 at 6:15 pm #46969csbeckMemberHi Brad,
Thanks as always.
Unfortunately it's not working - I'm sure it's user error.So I created a new template file called "page_feature_loop.php" and assigned it a template name of "Feature Loop Page".
https://gist.github.com/csbeck/5827856
I removed the page_blog.php template from the template directory.
I assigned the page to that template.
Going to the page now shows some of the content on the page but there's a link to "continue reading...". I'm not sure what's going on. I must have done something wrong.
http://grglaw.beckerstudio.com/our-professionalsAlso, this page is still showing a grid.
http://grglaw.beckerstudio.com/rulings-and-decisionsShould Genesis Grid loop plugin be activated? I've tried the same pages with and without the plugin being activated.
Please impart of your wisdom one more time. 😉
June 20, 2013 at 6:40 pm #46977Brad DaltonParticipantI think its mine because i tested it on the Agency theme and it worked perfectly for grids and featured without any CSS and then when i used the code again on another theme, i got the continue reading link only so i have missed something.
I grabbed the code from the balance theme home.php file.
June 20, 2013 at 6:58 pm #46986csbeckMemberHere's how I would like this one page to look.
https://dl.dropboxusercontent.com/u/54563062/professionals_page01.jpg
June 21, 2013 at 5:17 am #47009Brad DaltonParticipantThis is what that code does when pasted at the end of the home.php file before the closing genesis() tag. Tested it on a new installation of Agency theme. But yes, also had the same problem you got when using the code differently.
https://www.dropbox.com/s/diqv4fa3npj4xox/csbec.png
I know there are several tutorials from theme developers about how to create a custom author page grid but they are fairly complicated.
http://www.wpbeginner.com/wp-themes/how-to-add-a-custom-author-profile-page-to-your-wordpress/
http://wp.tutsplus.com/tutorials/how-to-create-a-wordpress-authors-page-template/
http://justintadlock.com/archives/2008/06/09/doing-more-with-gravatars-authors-template-page
There's a few more good ones as well.
June 24, 2013 at 4:13 pm #47560csbeckMemberThanks Brad, but I've been banging my head on this the whole day and nothing seems to work. I can't believe this can't be done more easily.
So here's what I've done.
I have the plugin - Advanced Custom Fields. I have these custom fields showing up now on the Post content page by using Genesis Simple Hooks and putting right after the Post Title. This Post shows how I pretty much want all of the professionals pages to look:
http://grglaw.beckerstudio.com/professionals/karen-kaneNow the only problem is I'd like the listing of the professionals to be on a grid while leaving all the other Blog and Archive pages alone. I thought I could just create a custom archive page, but I'm not succeeding with that either.
Here's the listing page with the new template: http://grglaw.beckerstudio.com/professionals-listing-01
Karen Kane's entry looks pretty good (the right info). The list isn't shown in a Grid.Here's the listing page but with a blog-page template that shows content at the top of the list: http://grglaw.beckerstudio.com/our-professionals
None of these are correct and it looks like the page is not filtering for the category "professionals".Here's my code of the custom archive page:
So I'd really like to get the archive list for just the Professionals to be a Grid and leave all other archives and Blog pages in their generic display.
My fallback will be to layout the Professional's Listing Page as a grid in a page and hardcode the links and info. It won't be very good for the end client, but I'm at my wit's end.
Any additional direction and help would be greatly appreciated.
I'm even considering paying on this if necessary.Thanks, Chris
June 24, 2013 at 9:47 pm #47615Brad DaltonParticipantTry these.
http://my.studiopress.com/tutorials/category-blog-page/
http://my.studiopress.com/tutorials/genesis-grid-loop/
http://www.briangardner.com/custom-archives-page/
I'll try and test your code if i have time and see if i can help more
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.