Get a list of forms
-
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?
- The topic ‘Get a list of forms’ is closed to new replies.