I’d like to create a shortcode that will pull a list of related posts.
I have two custom post types: Authors and Books.
I’m thinking the idea would be something like:
Where john-doe would be the author slug. The shortcode would then list the books related to that author.
Does anyone know if this approach would be the best way to do this, and might someone be able to point me towards some example code or snippets to help put this together. I’m having some trouble getting a shortcode that pulls the data from the relationship field.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users