DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
323 posts
  • Trendsetter
  • Exclusive Author
  • Author Level 6
  • 2 Years of Membership
+4 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

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 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
323 posts
  • Trendsetter
  • Exclusive Author
  • Author Level 6
  • 2 Years of Membership
+4 more
DistinctiveThemes
says

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

Cheers homeslice!

1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 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)

394 posts icypixels.com
  • Weekly Top Seller
  • Winner
  • Elite Author
  • Author Level 8
+7 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
323 posts
  • Trendsetter
  • Exclusive Author
  • Author Level 6
  • 2 Years of Membership
+4 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