Hi Elliot
I’m using the relationship field to create relationships between different posts in different content types.
I’ve got no problem getting the correct posts and content to display as per the instructions in your tutorial here: http://www.advancedcustomfields.com/resources/tutorials/querying-relationship-fields/
When I need to use the get_posts method for the “reverse direction” query call (like your example for single-location.php in the tutorial), I battle with the normal wordpress problem of getting pagination to work with a get_posts query. I’ve got quite an extensive list of results and I need to be able to add pagination. Is there another way I can call those “reverse direction” relationship posts? Or do you have any other recommendations?
Thank you.
Hi @patternbook
Thanks for the question.
Because you are creating a new WP_Query object, you will need to modify the global $query args and also use a paged param in the WP_Query args.
Here is a good thread which talks about how you can achieve this successfully!
http://stackoverflow.com/questions/15195340/wp-query-pagination-not-working
Thanks
E