DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
315 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Contributed a blog post
+3 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

1742 posts How's the surf doing?
  • Power Elite Author: Sold more than $1M on Envato Market
  • Had an item that was trending
  • Became a Top 20 Author of the Month
  • Achieved the monthly Community Superstar Award
+9 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
315 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Contributed a blog post
+3 more
DistinctiveThemes
says

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

Cheers homeslice!

1059 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+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)

390 posts icypixels.com
  • Had an item that became a weekly top seller
  • Won a competition
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
+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
315 posts
  • Sells items exclusively on Envato Market
  • Has sold $40,000+ on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Contributed a blog post
+3 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