Tell us what you are trying to do?
Trying to create a Custom Template for a Custom Post Type. However, the Custom Fields I created for the Post Type are not showing up.
Is there any documentation that you are following?
I tried to use the Toolset tutorial.
You have created a Content Template for your custom post type, and the custom fields assigned to the post type are not available as dynamic sources when adding blocks to the template, is that the problem?
Please make sure that the post being used to preview the template (there is a selector at the top of the page) includes sample data for the custom fields; if the fields of the preview post are empty they won't be found to be offered as a dynamic source.
Nigel accurately described my problem. However, I don't understand how to input sample data for the Custom Fields.
My assumption was that, after creating the Custom Fields and the Content Template for my Custom Post Type, I would be able to open the editing view of a post and see the Custom Fields at the bottom, as I do with other Custom Post Types for which I created Custom Fields. Then, I would be able to enter data into the Custom Fields for that post, and the elements connected to those Custom Fields would show the correlating data in previews or the live pages.
But when I open a post for the Custom Post Type, I see elements I created in the Content Template that aren't connected to Custom Fields, but I don't see my Custom Fields at the bottom. So, I don't see a way to enter data into the Custom Fields, so that the data from them appears in the dynamic elements in the post.
When I selected to edit the Custom Post Type in question, I see a section labelled "Post fields to be shown as columns in Post Type listing in WordPress Admin." When I select to edit other Custom Post Types I've made with Custom Fields, I can see a list of the Custom Fields in that section. However, for the Custom Post Type in question, I see this message: "You can include some Post Fields in the listing page for Tests. Add Field Group(s) to this Post Type and you will be able to select which fields will be displayed in the listing page." I wonder if that is connected to my issue.
When I selected to edit the Custom Post Type in question, I see a section labelled "Post fields to be shown as columns in Post Type listing in WordPress Admin." When I select to edit other Custom Post Types I've made with Custom Fields, I can see a list of the Custom Fields in that section. However, for the Custom Post Type in question, I see this message: "You can include some Post Fields in the listing page for Tests. Add Field Group(s) to this Post Type and you will be able to select which fields will be displayed in the listing page." I wonder if that is connected to my issue.
==>
This setting is for when you want to display custom fields on your desired post type listing page.
Can you please check the custom field group you created is set to display with your desired post type. You can check that from:
=> Toolset => Custom Fields => Edit your custom field group => from the custom fields settings at top, you will see "Appears on" , could you please make sure you set your custom field group to display with your desired post type.
If thats set, then could you please try to add a new post to your custom post type and you possibly should see all custom fields available and fill the value for all custom fields and publish the post and then try to build your content template with the post you just created.