Grid Layout – Adjust number of posts for different viewports

[ad_1]

Hi @motk88,
Thank you for using our plugin! We offer over 50 Gutenberg blocks. Could you please let me know which block you are currently using?
Is it the ‘Post Grid’? To find the block name, simply click on ‘List View’ and look for the parent block name. Please check my screenshot for reference: https://imgur.com/CvYcJiu

If I understood your question correctly, you would like to display a specific number of posts for different screen sizes, such as mobile, tablet, and desktop. Is that correct?

I look forward to your response.

Thread Starter
motk88

(@motk88)

Yes, I am using ‘Post Grid’ and you understood my question correctly 🙂

Hi, unfortunately, responsive support for query parameters like the ‘posts per page’ option isn’t available. All you can do is customize the number of columns for different screen sizes.
However, if you know how to code, you can override this functionality using the filter hook provided below.

function pgb_post_query_prams_extra($query_args, $blockArgs){

//$query_args[""] = "";

return $query_args;

}

apply_filters("pgb_post_query_prams", "pgb_post_query_prams_extra");

We appreciate your feature request, and of course, we plan to implement this if possible.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer