WordPress default pagination vs. tdb-loop-page

Posted in: Newspaper
Post count: 16

Hi, I’m trying to change the Forest Beat theme to use URL slugs for pagination e.g. /category/xxx/page/2/ via a Post Loop.

I noted for Forest Beat, a flex loop builder is used instead of a page loop. And somehow a page loop builder uses the ?tdb-loop-page= param which makes it harder to be indexed.

Can I check how come there’s a difference? And how exactly can I use page loop and yet still maintain the same “modules” to render paginated articles listings?

Post count: 35449

Hi,
To have teh standard url pagination you need to replace the flex loop builder element with loop post element https://i.imgur.com/WiAjpQ2.pnghttps://i.imgur.com/NEX2sv5.png
The pagination behavior of these two blocks is different, which is why the current setup doesn’t support standard URL pagination.
Thank you!

Post count: 16

Thanks but now it ends up with a different layout. And we can’t really customise the Post Loop element’s layout much to even follow the modules.

The Post Loop isn’t very customisable at all. What if we want the Post Loop to follow the module of the Flex Loop Builder? Like the positioning of the author, date, categories etc.

Post count: 35449

Hi,

Yes, using the Flex Loop Builder you can create the module exactly as you want with tagDiv Composer. However, when the Post Loop is used, it has its own settings that can be adjusted though they don’t offer the same possibilities as the Flex Loop Builder. Still, it’s possible to create a similar layout (for most elements, though not all) to the one built with the Flex Loop Builder’s module builder.

Thank you!

Post count: 16

Is there no way to override the Post Loop to customise to what we want? For example, there’s no way to edit the styling of the taxonomies (e.g. categories) labels – like the colour, background, font size, and adding in a border | to the side, to match the example given in the Flex Loop Module Templates.

Post count: 35449

Hi,
You can customize the fonts, colors, title, excerpt, author, date, and category – https://i.imgur.com/B8fhoU1.png many elements include their own configuration options. Just open the tgaDiv Composer, select the Loop Post element, and review the settings in both the Layout and Style tabs.

Post count: 16

Ok thanks, that works. But how do I change it such that instead of:

[Category label] author_name – December 10, 2025

It should be

[Category label] author_name | December 10, 2025

I noted in the examples, you guys used a 1 px border for the |

But in the post loop, your customisation is severely restricted. No way to change – to a | at all, is that correct?

Post count: 35449

Hi,
For the category, you can set a border like this – https://i.imgur.com/6XLnF6m.png https://i.imgur.com/LysNRdO.png and for the other | you need to use a css like this one:
body .td-module-meta-info .td-post-author-name span {
display: none;
}
.td-module-meta-info .td-post-author-name a {
margin-right: 8px;
padding-right: 10px;
border-right: 2px solid #aaa;
}

The cs can be set in a raw css element from the tagDiv Composer and it will apply only on the page where it is set. https://i.imgur.com/cnJ0g1Q.png https://i.imgur.com/UCDbctw.png

Post count: 16

Got it thanks. By the way, how come sometimes when I use the Posts Loop 2 inside e.g. a category template, /page/2/ shows up empty?

Post count: 35449

Hi,
The Posts Loop is a special element that has an automatic filter to display articles related to the template where it is set. For example, if it is on a category page, it will automatically display articles from that category. If it is set on a regular page, it will display all articles sorted by latest.
Also, you could check the offset option in the Posts Loop. This should be empty so that no articles are skipped.

Post count: 16

Limit post number: (empty)
Offset posts: (empty)

Yet when visiting /category/reviews/ and clicking page 2, leading to an empty page on /category/reviews/page/2/

Quite buggy, not sure if it’s a theme issue or what.

  • This reply was modified 6 months by jjgoi.
Post count: 35449

Hi,
Please set a limit for the number of posts. Without this, pagination pages cannot be generated correctly because the system does not know how many articles should be displayed per page.

Post count: 16

I did. It was 6, then it didn’t show up.

I removed, also didn’t show up.

Now I set it back to 6, and cleared cache, also didn’t show up.

Post count: 35449

Hi,
Do you have articles for that category? If you can provide temporary wp-admin access, we can take a closer look. Please contact us via email at contact@tagdiv.com and include the temporary WP-Admin access to the website, along with a link to this topic, so we can identify you more quickly.
Thank you!

Post count: 16

@Calin yes for sure. It works with the original template that came with Forest Beat. I merely duplicated, and replaced with the Post Loop.

I have already emailed in.

Post count: 35449

Hi,
I understand, in this case, the situation is related to some configurations of the duplicated template. We’ll check it via email and get back to you.
THanks

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