Skip Navigation

[Résolu] Custom short code not working for gravity form in content template

This support ticket is created Il y a 7 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 7 années et 1 mois.

Assisté par: Luo Yang.

Auteur
Publications
#583195
Screenshot_17.png
Screenshot_18.png
Screenshot_19.png

I am trying to display gravity form using custom short code.I have registered my short code in Toolset Settings > Front-end Content > Third-party shortcode arguments

I have created short code to get gravity form id from query string.

//get gravity form id from event registration page
function get_gravity_form(){
    if(isset($_REQUEST['id']))
    {    
        echo $_REQUEST['id'];
    }
}
add_shortcode('get_gravity_form', 'get_gravity_form');

But it is not displaying form.Please check screenshot for code used in content template to display gravity form.

Thanks

#583217

Dear Marc,

The option "Third-party shortcode arguments" of Toolset setting page, it is for use other shortcode as attribute of Views shortcode, for example:
[wpv-post-title id="[my-custom-shortcode]"]

It will not be able to display the gravity form, there isn't such a feature within Toolset plugins, I suggest you check it with the gravity form supporters, check if there is a shortcodes for displaying the gravity form.

I searched it in google, find this document:
lien caché
If you would like to build the WordPress shortcode manually, you may do so using the format and options below. You may then insert the shortcode into the body of the page or post you would like the form to appear in.

Example:
[gravityform id="1" title="false" description="false"]

For your reference.

#583244

Thanks for support..I am already using the short code you mentioned but still it is not working, I will ask in gravity form support.