Social icons shortcode does not work with the Extra option.

Posted in: Newspaper
Post count: 8

I use custom fields in the Social Icon Shortcode on a single template page. They all work fine but not for the Extra (where I use a custom field dedicated to the E-shop url). In this last case, if the custom field is filled with a valid url, then it works well, otherwise if it is empty, it shows a link like this https://www.bereilvino.it/cantina/nals-margreid/, just the url of the page. See my screenshot https://imgur.com/a/vhc0u5D

Post count: 21065

Hello!

Edit the post and add a value to that acf field, upload the post and try again.

Thank you!

Post count: 8

It works fine with a filled custom post type, but it does not work properly if it is empty. It displays the icon with the url of the page.

Post count: 21065

Hello!

Yes. There is no option to hide it when the acf value is empty.
You can add a default value to your acf, but it will work only if you save the post or use it for the next new posts.

Thank you!

Post count: 8

OK, thanks for you reply, I will search for another solution.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.