• Resolved Nathan Hawkes

    (@natehawkes)


    Hi!

    Is it possible to get a list of forms that are in Caldara forms? Currently, I have the ability to do this in Contact Form 7 and with Ninja Forms (although that uses a little workaround).

    With CF7, I can do it by performing a WP_Query for a custom post type (which I would greatly prefer), and with NJ, I use a hook to list all of the forms. I am currently using the Redux Framework to build a settings page for my theme, as someone else will take over the running of the site. In RF, I can set a field to list all of the posts in a given post type, so I was able to list all of my CF7 forms and the user could set which form will be used to do certain things (be on a contact page, event registration, etc.) I would prefer to be able to list them by CPT, but I can’t do that with NJ. What I do there is list all of the pages that do those things – contact page, event registration, etc. – and then have a metabox appear on the page in question that says “Which form do you want to appear here?”

    I would prefer to use the CPT method, but if I can’t, is it still possible to list all of the forms that Caldera has?

    https://www.ads-software.com/plugins/caldera-forms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor David Cramer

    (@desertsnowman)

    Its a simple get option: get_option( ‘_caldera_forms’ );
    returns an array of forms.

    Thread Starter Nathan Hawkes

    (@natehawkes)

    Thank you so much! From the little experience I have had with Caldera Forms, I have to say it is by far my favourite system yet. I can’t believe I have not used it before, especially since I have been looking for a system exactly like this for a few months now. Thank you again!

    Plugin Contributor David Cramer

    (@desertsnowman)

    You’re very welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get a list of forms’ is closed to new replies.