I have installed the plugin and set up some custom fields. I created a new post and entered the information in the fields. When I look at the published post, none of the data entered in the fields are displayed. I look through the documentation, but to me, and I am not sure, it appears like I have to do some code editing??
Secondly, I would only like these custom fields to appear on a certain post template.
I found an site which seemed to explain how to set up the plugin and it seemed like all you had to do is create a new template file and define it as the template to be used in the custom fields group. Unfortunately I cant find that site again for you to review. Any help would be appreciated.
found the site I was referring to: http://www.elliotcondon.com/using-the-advanced-custom-fields-plugin-to-create-a-custom-home-page-in-wordpress/
I suppose my question is, how do I assign a new post template to use these custom fields? The how to docs explain how you display the field, but not how you select that custom template only to use the custom fields. At the moment, it displays the fields on the default post.
Here is an article on setting up location rules: http://www.advancedcustomfields.com/resources/tutorials/custom-location-rules/
Is it what you are looking for?
If you have a custom post type registered like for example I have a post type customer:
then in Location rules selection you should not be looking for post templates but post types like it is below:
I don’t think you should be worry about post templates as I believe you can only create one per each post type (but for pages as many as you like).
Unless you don’t see any custom post types in your selection?
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
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.