• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

How to insert a shortcode in the "Post Content" field when creating a post in wordpress?

ricardolrm

Member
Your Task History ID
IjU3NjUwNTY5MDYzNTA0MzE1MjY1NTUzYzUxMzMi_pc
I'm setting up an automation that creates a post on Wordpress as soon as a video is posted on my YouTube channel.

I need the video to be added to the body of the post using, for example, this shortcode (gamipress):

[gamipress_youtube url="my_Ipz9lHC0" width="640" height="360" autoplay="no" controls="yes"]

Logically, the video specified in the url is obtained from the trigger I configured on YouTube.

The following error message occurs as soon as you save the automation:


It seems like there is a JSON syntax problem.

I also tried the following shortcode:

[gamipress_youtube url=\"my_Ipz9lHC0\" width=\"640\" height=\"360\" autoplay=\"no\" controls=\"yes\"]

But I wasn't successful either.

If anyone can help me with this, I would really appreciate it...
 

ArshilAhmad

Moderator
Staff member
Hi @ricardolrm,

Please try using single quotation marks (') instead of double quotation marks (") to see if this resolves the issue for you.
{ '[gamipress_youtube url=\'
' width=\'640\' height=\'360\' autoplay=\'no\' controls=\'yes\']' }
 

ricardolrm

Member
Thank ArshilAhmad!

It worked with your tip...

Could you give me another tip?

I tried to configure the "Featured Media ID" with the thumbnail link available in the automation's YouTube trigger, but it didn't work.

It appears that this field does not accept the image URL, but only the ID.

Is there a tutorial that teaches how to put the thumb configured on YouTube as the featured image of the post?


 
Top