I am trying to:
We've created custom fields for our "Report" Custom posts and I have created a Report Content template that should pull in the custom fields but the fields are not showing.
Link to a page where the issue can be seen: hidden link
Thank you for sharing the admin access, but it is not allowing me to log in.
I'm getting the message:
"Important notice: the first time you log in to our new website, you will need to reset your password.
ERROR: The password you entered for the email address <email> is incorrect. Lost your password?"
Can you please check the username and the password and share them again?
I visited your site and I see in your templates that you are using a WPBakery module to output the custom fields, and you are specifying the text name of the custom field as the source (screenshot).
Types custom fields use a wpcf- prefix when stored in wp_postmeta, and it is this key which you likely need to use for WPBakery to know what the correct source is. Try changing the "name" to the post meta key, e.g. 'wpcf-report-no' for the Report No field.
Thank you - that's great. It's worked for all fields expect the date field "Publication Date" - which is diplaying incorrectly. It's showing a numbers rather that the expected date format. How do I correct this? Thanks
The problem is that WPBakery is taking the raw values from the database for custom fields, which for simple text-based fields is not a problem, but which is for more complex fields.
Date fields are stored as UNIX timestamps (the number of seconds since 1 Jan 1970) and that is why you are seeing numbers output.
When you output such fields using types shortcodes then you can choose the preferred formatting.
So, instead of WPBakery's dynamic sources, use a text module to add the types shortcode. You should have the Fields and Views button available to insert the shortcode with the relevant attributes.
If something has changed with the recent WPBakery updates and that button is missing, let me know.