Filter posts loop by author ID

Posted in: Newspaper
Post count: 5

Hello,

I want to put a post loop on a page that shows posts from a particular user. So, filter posts by the author. Is this possible with the Posts Loop module?

Post count: 21065

Hello @marvinschaap1!

You can not achieve this with the element Posts Loop, but you can do this only with the element called “Flex block”. Check the guide here: https://forum.tagdiv.com/flex-block-settings-guide/
An example, you can see on this page from our demos: https://demo.tagdiv.com/newspaper_music_life_pro/author/john-snow/
If you click on any author from the right side, then you’ll get all the posts written by the selected author. If you want a page like this, then you can import the author template from this demo Music & Life PRO. Copy-paste the rows or elements from this page to another page. The filter for that flex block is Author – Current Author and this is working only on an author template. If you want to use it on other page/template, then you need to filter by author ID as it is describes in the flex block’s guide.

Hope that helps you!

Thank you!

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