Anonymous User 14808221
(@anonymized-14808221)
WYSIWYG and Single Line Field do not display as a “Dropdown” but as Text Fields.
Those are, after you added them to a Fields Group under Types > Custom Fields, available for the Post Types you set the Group to be assigned.
The Default Values are saved in the DDBB as a postmeta for the Post where you actually saved the field at least once.
It is also saved as a Option for the Field in the options table.
So if you saved your Post once and left the Default value, this must display also with the API or the ShortCode for that Post.
Thank you
Beda, is there any way to save a post automatically? We have 50 custom post types where we want the default value to show up, so I wanted to avoid having to do this manually.
Thanks for your thorough explanation.
Justine
Anonymous User 14808221
(@anonymized-14808221)
As said, it will appear once you create Posts.
If you need this “backwards” (for old posts) there is no way Types can run a expensive Query to update old posts.
In fact I added a request to add this feature but that’s not in our plans for right now.
What you can try, is, to add the Field to the Post list.
1. Types > Post types > your_post_type > edit > Post fields to be shown as columns in post listings in WordPress Admin > check your fields > save
2. Head to the post listings in WordPress Admin and mark ALL posts and hit edit, make NO changes, and save
This could actually work.
Thanks