list related content in single template

Posted in: Newspaper
Post count: 17

Hi,

I need to show in a single template the loop of related content. The list is composed by posts related in an ACF field with relation type. Do I need to write php code to create the loop?

Thanks

Post count: 35449

Hi,
The newspaper theme contains flex blocks with a filter for related articles – https://i.imgur.com/42YQgEi.png also the ACF filed can be set in the “custom filed” element https://i.imgur.com/6SQYtXM.png
I hope this will help you!

Post count: 17

Hi,

flex block is fine, but I need to get posts related with the current article which ID is in an Advanced custom field. Let me explain:
1. main article is a book author (CPT)
2. flex block lists books (CPT) written by the author
In the book post there is a ACF where I set relation between the book and the author.
Is it possible to set a dynbamic loop in the flex block?

Thanks

Post count: 35449

Hi,
Unfortunately, for the moment there is no option to display cpt that are stocked in an ACF. The ACF can be displayed using the custom file – https://i.imgur.com/r9rpIQn.png
Thank you!

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