How to set offset post for LATEST POST MODULE on mobile theme plugin?

Posted in: Newspaper
Post count: 2

How to set offset post for LATEST POST MODULE on mobile theme plugin?
thanks

Post count: 22421

Hello,

Unfortunately the mobile theme does not have any sorting option for it’s modules. If you want to implement an offset on the homepage, you can add this line of code:
'offset' => 3 like so: and change the number to your preferred offset number: https://www.screencast.com/t/8JQhIFC5

Thank you!

Post count: 2

thanks 🙂

Post count: 13

this option ‘offset’ => 3 dosent work propely, it dosent show de next pages, this stuck in the home page in following pages. Any idea how to fix it?

Post count: 35449

Hi @Roberto Falbo,

I tested that offset and is working, please make sure that you set the offset like Bogdan B. Show in that screenshots.

If there is still a problem please provide me same more details and some screenshots with this problem.

Thank you!

Post count: 13

Hi Calin
I just set up again the offset in the file, as the same way Bogdan explain and there still the problem, the page dosent show the nexts posts in following pages, You can see in there.

Post count: 35449

Hi,

If that is not working, please try this -> https://www.screencast.com/t/xKw76Mh9bYN -> https://www.screencast.com/t/eBmXFncB
if($paged == 1){
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
'offset' => 3,
);
}else{
$wp_query_args = array(
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
);
}

Thank you!

Post count: 13

Hello Calin,
I want to thank you for your attention to my problem, set it up with your new code, and everything is working perfectly now.
Thank you very much.

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