Gallery API name of fields.

Posted in: Newspaper
Post count: 46

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

Post count: 27744

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!

Post count: 46

Hello Anamaria,

https://prnt.sc/-1j77fnz2Wgz

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.
Post count: 27744

Hi,

Please also check this path wp-content/plugins/td-cloud-library/shortcodes/common/tdb_gallery.php where the gallery is. Maybe it will help you to achieve what you want.

Thank you!

Post count: 46

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

Post count: 27744

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!

Post count: 46

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.

https://prnt.sc/Q0krkSNc6IpP

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

https://prnt.sc/vwTJ7xIKA6uN

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).

https://prnt.sc/6elSpDm5kptB

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

Post count: 21065

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!

Post count: 46

Hello Bettina,

We have inhouse devs thank you. We’ll tackle this ourselves for now. We just didn’t want to modify any of the core theme files unless there’s no other options.

I hope more flexible gallery option will be considered.

Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.