Hello,
We’ve been trying to find the field api name of the CPT block, especially the gallery field?
https://prnt.sc/Aaq-N8-iewtl
We’re creating/updating posts from external sources via API and we can’t find the name of the fields.
Where can we look for them?
Thank you
Hello,
You can find the file where this is implemented in those paths -> wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/content-metaboxes/td_set_post_settings.php -> wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/content-metaboxes/td_set_post_settings_cpt.php
Thank you!
Hello Anamaria,
Thank you. We found the fields and we’re the the image ids.
But the images are not added to the gallery.
We have tested the ACF Pro gallery by creating a custom field and adding it the the post type. We have no issue adding images to the post via API.
https://prnt.sc/_AA39_EtDk-d
Is there any additional steps with should take to commit the output? We’re stuck with this task and can’t import our dataset because of this issue.
Thank you
-
This reply was modified 2 years by
obiwan.
Hi Anamaria,
None of the tags return an output.
When we export the post data, this is the field name we have for the gallery.
https://prnt.sc/JzWWEIvLmTFU
Is there a way we can output image ids to that field to create the gallery?
Thank you
Hi,
Those settings are stored in wp_postmeta -> using the td_gallery_imgs there is the id of the image https://prnt.sc/IuM9J0ZSPBQh
Thank you!
Hi Anamaria,
Thanks for your time. However it’s not working.
https://prnt.sc/kLw8uOunY8Uw
We need the image IDs stored in a single field for the gallery or in an comma separated array. Like it is normally with ACF custom fields.
We need to output the media id on posts/articles creation to ensure there will be no duplicate and have our automation future proofed.
As we will be using many of the TD plugins
Are the images ids from the gallery posts store in a single field anywhere in the database? If not, can it be added in the coming update(s).
This is how the gallery images are returned when using ACF Gallery field. Can the same be applied to the theme custom posts gallery?
Thank you
Hello @obiwan!
We will take into consideration your query!
Also, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/ and they will help you to achieve what you need.
Thank you!