I have a custom post type = portfolio
I have created a page template to display all the posts on a page.
I want to create an ACF field that allows the user to:
1. Select the portfolio posts that they want displayed
2. Select the order in which the posts should be displayed
What sort of ACF field would be best to achieve this result?
You want to create searching and filtering on an acf field. For this see the section titled
Dynamic $_GET parameters
on this page
https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
No, I dont think so. I have no problem showing the posts I want to show using wp_query.
What I was is an effective ACF field that lets the customer login, select posts to be displayed and allows them to sort the order of the selected posts.
Once they have done this, I can get the ids and display them on the front end
https://www.advancedcustomfields.com/resources/post-object/
this is what you need with “multiple select” option you receive an array of posts or post ids in the order the user picked or sorted it
Either a post object or relationship field will do what you want.