DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
130 posts
  • United Kingdom
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
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

1181 posts How's the surf doing?
  • Forum Superstar
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Referred between 200 and 499 users
  • Exclusive Author
  • Has been a member for 3-4 years
+2 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
130 posts
  • United Kingdom
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
DistinctiveThemes says

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

Cheers homeslice!

505 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • United Kingdom
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!
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Romania
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
+1 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
130 posts
  • United Kingdom
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
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