I have a site with custom post types 'books' and 'book-authors', and a relationship of one to many (books - book-authors).
There is one custom field from 'book-authors' that I want to display on the 'books' template. That field should link back to the specific 'book-author'.
I'm using Elementor, and from what I've read I need to use a shortcode to display this? I read some answers here but they were a bit technical. Can someone give me an example I could use for this?
Thanks!
Hello. Thank you for contacting the Toolset support.
I have a site with custom post types 'books' and 'book-authors', and a relationship of one to many (books - book-authors).
==>
Based on the information you shared - you have one (book) to many (book-authors) post relationship so you have many (book-authors).
To display many related post you will require view to display related post.
Hi thanks for the reply. Sorry I said the wrong thing initially - the relationship is one author to many books.
I had read those docs before but couldn't figure out how to make it work. Both 'books' and 'book authors' have a post template they're using. I just want to use one field (not anything else) from 'book authors' on the 'book' post template. Can you give me an example of what the shortcode would look like to do that?