Display titles of your Gravity Forms

How can I display title of all active Gravity Forms?

Add this code to your page:

[php]
<?php
// display Gravity Forms titles
$forms = GFAPI::get_forms();
$i = 0;
for ($i=0; $i<count($forms); $i++) {
echo $forms[$i][‘title’];
echo “<br />”;
}
?>
[/php]

Submit a Comment

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