Support » Plugin: Gutenberg Blocks – Ultimate Addons for Gutenberg » Post Grid and Post Masonry

  • Resolved AlfredG

    (@alfredg)


    hi,

    Post Grid and Post Masonry show all pages when I choose pages as post type. It would be a nice option if we could select pages to be in the grid. Is that possible? If not it’s a freature request.

    Best regards,

    Alfred

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @alfredg ,

    Unfortunately, there is no such direct option for now. But meanwhile, you can make use of action hooks to achieve this. Here is a link to the document

    To display specific pages in the post grid. Please use below custom code –

    function filter_post_query( $query_args, $attributes) {
    	// 1,2,3 is the pages id you want to display.
        $query_args['post__in'] = array( 1,2,3 );
        return $query_args;
    }
    add_filter( 'uagb_post_query_args_grid', 'filter_post_query', 10, 2 );

    I hope that helps.

    Regards,
    Sweta

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @alfredg ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.