• Resolved ZeroGravity

    (@zerogravity)


    I have a template with the following code to add posts from a category after the content on a page. The posts are listed but not using the grid. What am I missing?

    add_action('genesis_after_loop', 'buyer_grid_loop_helper');
    function buyer_grid_loop_helper() {
    
        $args = array(	'category_name' => 'home-buyer', );
        genesis_custom_loop( $args );
    
    }
    
    genesis();

    Thanks!

    https://wordpress.org/plugins/genesis-grid-loop/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    This plugin only works for the main loop of the page. Custom loops cannot use it. You’ll need to build your own grid for the custom loop.

    Thread Starter ZeroGravity

    (@zerogravity)

    Thanks Bill. I had the feeling it might be something like this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working when adding posts after content’ is closed to new replies.