DistinctiveThemes
DistinctiveThemes Recent Posts Threads Started
248 posts
  • Located in United Kingdom
  • Has sold $10,000+ on Envato Market
  • Contributed a blog post
  • Has been part of the Envato Community for over 1 year
+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

1542 posts How's the surf doing?
  • Nominated Community Superstar of the month
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Had an item featured on Envato Market
+7 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
248 posts
  • Located in United Kingdom
  • Has sold $10,000+ on Envato Market
  • Contributed a blog post
  • Has been part of the Envato Community for over 1 year
+3 more
DistinctiveThemes says

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

Cheers homeslice!

808 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
+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)

284 posts New Elite in Town!
  • Won a competition
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a Most Wanted contest
+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
248 posts
  • Located in United Kingdom
  • Has sold $10,000+ on Envato Market
  • Contributed a blog post
  • Has been part of the Envato Community for over 1 year
+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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by