Shortcode’s output to use as other shortcode’s parameter

I’m trying to pass Shortcode A’s output as a parameter to shortcode B

[su_post field=”post_date_gmt”post_id=”173″ filter=””] // Output 2018-07-22 12:06:35
[transform_date date=’2018-07-22 12:06:35′] // Here i wanna pass the output of above shortcode, something like:

[transform_date date='[su_post field=”post_date_gmt” default=”” before=”” after=”” post_id=”173″ filter=””]’]

But it’s giving an error

ERROR: : date_format() expects parameter 1 to be DateTimeInterface,
boolean given in

Clearly this is not the right way to do it, How can i achieve the desired results?

Read more here:: Shortcode’s output to use as other shortcode’s parameter

Leave a Reply

Your email address will not be published. Required fields are marked *