ACF Relationship query loop in CPT Layout
Hi,
I have 2 new CPT and inside each I want to make ACF Relationship field to show as a Query Loop:
- Inside Club layout -> Traniers that train in this club
- Inside Trainer layout -> Clubs that this trainer train in
How can I achive that? I already have an ACF Realtionship that is searching post types, but I cannot configure Query Loop to show them
Comments
Hi,
Please see the following video tutorials:
https://support.muffingroup.com/video-tutorials/unlock-the-power-of-wordpress-with-custom-post-types-cpts/
https://support.muffingroup.com/video-tutorials/learn-how-to-use-custom-post-types-cpts-in-bebuilder/
Best regards
@Phil non of the videos shows how to do exaclty what I describe. I want to have ACF relationship fields with Query Loop from it inside my CPT Single Post.
Now when I choose inside the Relationship field some Trainers, I want to show ONLY them inside this Club Page.
How to achieve that?
Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact as we must take a closer look at this.
Notice!
Please attach a link to this forum discussion.
Sending incorrect or incomplete data will result in a longer response time.
Therefore, please ensure that the data you send are complete and correct.
Thanks
@Phil done
@Phil another problem is that in CPT Archive Load more button is not working. Pagination does not work at all.
But here, it working fine:
1) The relationship will not work because in Betheme, only simple type fields are supported, just like in the ACF (https://www.advancedcustomfields.com/resources/shortcode/).
Relationship is an object field, so it will not work.
As a workaround, you can manually put links to trainers/clubs.
2) The pagination does not work because of the way you registered the post type:
We have commented out the incorrect part, added the proper one, and the pagination works correctly.
Best regards