DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
149 posts
    Located in United Kingdom Has sold $10,000+ on Envato Market Has been part of the Envato Community for over 1 year Has referred 1+ members
+2 more
DistinctiveThemes says

Anyone got any pointers on the above?

Is there any way to get a list of all of the forms that have been created with contact form 7?

Thanks, Danny

1241 posts How's the surf doing?
    Has referred 200+ members Has sold $500,000+ on Envato Market Has been a beta tester for an Envato feature Has collected 10+ items on Envato Market
+6 more
tommusrhodus says

Hey mate,

It’s just a custom post type, so you can query it with the usual custom query methods. I can’t for the life of me remember what the post type name is though! :)

DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
149 posts
    Located in United Kingdom Has sold $10,000+ on Envato Market Has been part of the Envato Community for over 1 year Has referred 1+ members
+2 more
DistinctiveThemes says

Gah! should have know it was, almost everything is!

Cheers homeslice!

555 posts
    Has been part of the Envato Community for over 4 years Has referred 1+ members Has been a beta tester for an Envato feature Has collected 10+ items on Envato Market
+3 more
Gareth_Gillman says

The name for CF7 CPT is called wpcf7 (you can get this by looking at the url for a CPT in the admin)

270 posts New Elite in Town!
    Has referred 10+ members Has sold $125,000+ on Envato Market Has been a beta tester for an Envato feature Has collected 10+ items on Envato Market
+6 more
icypixels says

Here’s a small snippet to get you started:

$post_type = 'wpcf7_contact_form';

$args = array (
    'post_type' => $post_type,
    'posts_per_page' => -1,
    'orderby' => 'menu_order',
    'order' => 'ASC',
);

$contact_forms = get_posts($args);
DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
149 posts
    Located in United Kingdom Has sold $10,000+ on Envato Market Has been part of the Envato Community for over 1 year Has referred 1+ members
+2 more
DistinctiveThemes says

Wow thanks guys! Im so glad I asked! got a real headstart on this now :)

@icypixels – I really like your new logo/avatar!

Thanks folks

by
by
by
by
by
by