shortcode inside blocks

Posted in: Newspaper
Post count: 22

Hi, I need to insert a shortcode to define post_ids for a block from an adavanced custom field value.
Something like this:

[td_block_13 separator=”” post_ids=”[acf field=”bundle”]” tdc_css=””]

But this breaks the syntax.
How can I solve this?
Thanks,
Francesco

Post count: 22421

Hello,

If you want to alter the theme code and add custom fields, you will need to know what you are doing. Sometimes code must be adapted to work with your modification. We suggest hiring a developer to help out as the theme support does not cover customization.

Thank you for your understanding.

Post count: 22

Hi, I already added custom fields.
I just want know if there is a workaround to avoid quotes from shortcode [acf field=”bundle”] breaking the block code of newspaper theme when passed as post parameter
:
[td_block_13 separator=”” post_ids=”[acf field=”bundle”]” tdc_css=””]

Thanks,
Francesco

Post count: 22421

Sorry but we have not tested this. Please understand that custom work is not part of the theme support. We have not tried adding a shortcode as a parameter and in order for us to test to see if it will work, we would have to actually make the customization ourselves. If you do not have the skills necessary to make the modification you require we suggest hiring a developer to help with the code. We try to help out where we can and if the customization is not very time consuming but time does not allow us to tackle such tasks as you describe.
Thank you for your understanding.

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