condition on a paragraph field based on a shortcode

By: Emmanuel GADEK | Asked: 04/30/2025
ForumsCategory: Code Helpcondition on a paragraph field based on a shortcode
Emmanuel GADEK asked 3 weeks ago

Hi all,
I've created a shortcode based on http refferer url.
I wish to create a condition on a paragraph input field.
For exemple if shortcode is not empty, insert this default value "blablabla".
Is it possible ?

1 Answers
Rob LeVineRob LeVine Staff answered 3 weeks ago

I don't understand how the first two sentences are related. You created a shortcode and are using it where? Anyway, you can use a custom shortcode as the default value and have the shortcode return whatever value you want, either "blablabla" or some other value. Note that the default value is only set when the entry is created.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right