• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

genesis_custom_loop vs genesis_grid_loop: How to format posts?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › genesis_custom_loop vs genesis_grid_loop: How to format posts?

This topic is: resolved

Tagged: format, genesis_custom_loop, post

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 11 months ago by travlanders.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 23, 2013 at 11:38 pm #63937
    travlanders
    Member

    Hi,

    New to Genesis and trying to work out some kinks...

    I am fairly familiar with things but I may slip up so help with my lingo, thoughts if you can please....

    I want to list certain posts based on metadata so I am using genesis_custom_loop

    genesis_custom_loop( array(
    			'meta_key' => '_fb_count', 
    			'orderby' => '_fb_count', 
    			'order' => 'DESC'
    		) );

    This works great... returns what I would expect... Cool...

    My question comes from moving from a genesis_grid_loop to this new genesis_custom_loop...

    My old code used the genesis_grid_loop and I was able to have limited control over how the posts looked:

    genesis_grid_loop( array(
    			'features'				=> 0,
    			'feature_image_size'	=> 0,
    			'feature_content_limit'	=> 0,
    			'grid_image_size' => 'previewImage',
    			'grid_image_class' => 'alignleft post-image',
    			'grid_content_limit'	=> 250,
    			'more'					=> __( '[Read more]', 'minimum' ),
    		) );

    I could pass in these args and manipulate features or image size, etc...

    How can I manipulate how the posts look using a genesis_custom_loop?
    What args can I pass it?

    I tried something like:

    genesis_custom_loop( array(
    			'features'				=> 0,
    			'feature_image_size'	=> 0,
    			'feature_content_limit'	=> 0,
    			'grid_image_size' => 'previewImage',
    			'grid_image_class' => 'alignleft post-image',
    			'grid_content_limit'	=> 250,
    			'more'					=> __( '[Read more]', 'minimum' ),
    			'meta_key' => '_fb_count', 
    			'orderby' => '_fb_count', 
    			'order' => 'DESC'
    		) );

    But everything was ignored regarding style...
    Ultimately I would like to be able to add a facebook like button somewhere within each post. I am thinking next to the comments... How can I did into that area? Hook into it?

    Any help is greatly appreciated!!

    Thanks,
    Travis

    ps- if you head to the url you can see my site... really i am not sure if it is helpful for this question though...

    http://thefrankenstoryproject.com/
    November 20, 2013 at 1:07 pm #74475
    Susan
    Moderator

    Hi, as you posted this a while back, I hope you got your issue resolved. If not, please check back, and I will escalate for you. If it is resolved, please mark “resolved”, and I will close it. Thanks!

    November 20, 2013 at 11:11 pm #74661
    travlanders
    Member

    The original question which was not stated very well was how to manipulate what the posts looked like...

    I wanted to add something to line of the post where the number of comments are displayed.

    I thought this would be somehow connected to the query array but it is not...

    In the end I used my custom query to return my results then I hooked into that comment line which is actually called $post_Info. I inserted this filter on my functions page......

    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter( $post_info ) {
    	$addedString = 'Stuff I wanted to add which was a FB like tag';
    	return $post_info.$addedString;
    }

    Solved

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘genesis_custom_loop vs genesis_grid_loop: How to format posts?’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble