Set different post number for web / landscape portrait tablet / mobile

Posted in: Newspaper
Post count: 101

Hello,

in tagdiv it is possible to change the number of modules in the layout of the flexblock.
Web is set to 5, tablet landscape 4, portrait 3 and mobile 2.

However we also would like to set the number of posts differently per format.
Web can display 15 posts at a time, tablet 12, portrait 6 and mobile 4.

We tried setting this differently but the number changes sadly for all options to the same value.
Am I missing something here or is this not possible at the moment ?

post limit

Post count: 35449

Hi,

Sorry for the inconvenience, but for the moment is not possible, we’ll add this one on our list of features.

Thank you for your understanding.

Post count: 101

that would be a great improvement indeed. the rest of the options, if possible, would come in handy too if they could be set per device.

we have built for instance an alphabetical index which we would like to show only on the full site, but not on mobile. if these rows and columns, essentially the same page could be built per device that would be awesome for many.

Post count: 101

For those with the same issue, you can overcome this problem by adding this code to the functions

function custom_posts_per_page($query) {
if (wp_is_mobile()) {
$query->set('posts_per_page', 15);
} //endif
} //function

//this adds the function above to the 'pre_get_posts' action
add_action('pre_get_posts', 'custom_posts_per_page');

Post count: 201

Apologies for bumping an old thread, but was this feature ever added?

On a Flex Block, for example, it would be handy to be able to specify a different ‘limit post number’ for desktop and mobile.

Post count: 35449

Hi c386,
There was a different option added, now you can create mobile pages and mobile templates using tagDiv Composer and you can use the same content/layout or you can set a different content/layout – https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages/ also the options that can be edited per devices have a left bar like this one – https://i.imgur.com/ZDYeyLa.png
Thank you!

Post count: 201

Hi Calin,

Thank you for the quick response. I’m not keen on creating separate mobile pages; a single responsive page is so much easier to maintain.

Appreciate the suggestion nonetheless and thank you for pointing out the left bar that highlights which options can be edited per device. That’s a very useful touch.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.