If the “author” field is an array, how can I make “Custom Field” display the values of all the elements in the array?
Hi,
Unfortunately, the custom field can not display array, only text, url, email, textarea, number, select, checkbox, radio, and button group.
https://forum.tagdiv.com/custom-fields-support/
Thank you!
Yes, thank you. We need to display the post ID of a custom post using the Custom Field block for future use of that data in other shortcodes.
Thanks
Hi,
Is that a page or a template? If you need the post title, it will not be easier to use a flex block 1 and display only the title and you can filter it after the post id you want or better to have less code, you can create a module only with the title https://forum.tagdiv.com/modules-builder-newspaper-theme/ and this can be displayed using the flex builder https://forum.tagdiv.com/flex-block-builder-flex-loop-builder/
Thank you!
Hi,
I see, if it is a CPT and the title of the post will change based on the CPT you are then it will be ok to use a custom field to collect the posts you want to display, for example, you can use a text field and it will be in the post IDs only, for example: the custom field must be displayed in each CPT so you can set for each one the post ID you want to display. After that on template use a flex block or create your own module and use a flex builder to display that post or posts, what you need to do is to set in the filter tab some parameters to get the values from your custom field – https://i.imgur.com/7tRPctY.png
Thank you!