I am kind'a new to wordpress and i need some help.
I am building a website that contains articles. in each article page i want to show the writer details(image name and short description).
I have built a custom post type named 'articles', now I want to choose the writer details at the article post page lets say from a meta box...
I have also created other custom post type called 'writers' and there are all the writer details. now, my question is how do I get this done? how do I show the data from writers CPT in articles CPT?
I found this tutorial but it dosent seem to be what I need. I have installed the CPT-onomies plugin and now i see a meta box with a drop down that contains all the 'witers' CPT. how do i make the data appear in the article post front end?
Any tutorial or clue will be helpfull.
I am kind'a new to wordpress and i need some help.
I am building a website that contains articles. in each article page i want to show the writer details(image name and short description).
I have built a custom post type named 'articles', now I want to choose the writer details at the article post page lets say from a meta box...
I have also created other custom post type called 'writers' and there are all the writer details. now, my question is how do I get this done? how do I show the data from writers CPT in articles CPT?
I found this tutorial but it dosent seem to be what I need. I have installed the CPT-onomies plugin and now i see a meta box with a drop down that contains all the 'witers' CPT. how do i make the data appear in the article post front end?
Any tutorial or clue will be helpfull.
This doesn't solve your question to show a custom post type inside a custom post type, but why don't you use an author template? You can set up users for your writers and select that user for each post. You can even use Advance Custom Fields to add custom fields to a users profile.
https://codex.wordpress.org/Author_Templates
if you are not using Gutenberg in article CPT you can easily solve this problem in 5min using PIKLIST plugin. On the other hand u can also fix it by creating custom meta box where your Writer list will shown as Html Select field. Let me know if you need any further help.