Grid Loop – want a loop on one Blog listing page but not others

Community Forums Forums Design Tips and Tricks Grid Loop – want a loop on one Blog listing page but not others

This topic is: resolved

This topic contains 7 replies, has 2 voices, and was last updated by  braddalton 1 year, 2 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #46945

    csbeck
    Participant
    Post count: 135

    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-decisions

    What’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-professionals
    #46947

    braddalton
    Participant
    Post count: 9413

    Custom 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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #46969

    csbeck
    Participant
    Post count: 135

    Hi 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-professionals

    Also, this page is still showing a grid.

    http://grglaw.beckerstudio.com/rulings-and-decisions

    Should 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. ;-)

    • This reply was modified 1 year, 2 months ago by  csbeck. Reason: Added Gist
    • This reply was modified 1 year, 2 months ago by  csbeck. Reason: Added Gist
    #46977

    braddalton
    Participant
    Post count: 9413

    I 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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #46986

    csbeck
    Participant
    Post count: 135

    Here’s how I would like this one page to look.

    https://dl.dropboxusercontent.com/u/54563062/professionals_page01.jpg
    #47009

    braddalton
    Participant
    Post count: 9413

    This 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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #47560

    csbeck
    Participant
    Post count: 135

    Thanks 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-kane

    Now 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

    #47615

    braddalton
    Participant
    Post count: 9413

    Try 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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.