Custom content in Homepage after latest articles pagination

Posted in: Newspaper
Post count: 16

Hi There,

I was wondering if there is any option to add content in the homepage after the latest articles pagination? Basically it has to be before the sidebar and after the pagination. I was able to add the custom content by editing the loop.php, but it displays in between of list of posts and navigation buttons. Any help would be appreciated.

Post count: 22421

Hello,

Unfortunately adding custom content after the loop will also cause it to appear on category pages where the loop is also used. The best course of action would be to simply replace the latest articles by changing the page template to the default one and create the latest articles section in the tagdiv composer using standard blocks.

Thank you!

Post count: 16

Thats not an issue. the isHome and isArchive function can be used to control to display to specific page. The only issue for me I want to display after the pagination and I am not able to work it out.

Further, I even tried with standard blocks, but it does not have the option of number pagination. It supports only Next & Prev or Load more option. I need numbered pagination to solve my issue.

Please help

Post count: 22421

OK,
You want to change the specific template, not the general loop.php file. Here is an example for the pages using the pagebuilder+ latest articles
https://www.screencast.com/t/GnN0dpMFIO
You have to use a do_shortcodes function.
There is a case for each sidebar position so you have to place the code inside the main content container for the case you use or each of the cases if needed.

Result: https://www.screencast.com/t/kUKxHEbebnQ

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.