Get all the posts from the category in a dropdown list in a custom field

Question

In wordpress I have have a custom post type. Lets say it is movies. Inside movies I have a list of posts with different movie name. Now in each post I want a custom field of dropdown. Where all the posts for movie will be get populated. And when I will select anyone of them and save. Then the selected movie will show in the frontend. So can someone tell me how to add custom fields for dropdown and fetch all the posts name from that category in the options?
Any help will be really appreciable. Thanks

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/get-all-the-posts-from-the-category-in-a-dropdown-list-in-a-custom-field/">

Get all the posts from the category in a dropdown list in a custom field</a>
0
, , newuser 3 months 0 Answers 65 views 0

Leave an answer