Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

jazzerus on "[Plugin: Contact Form 7] Select Element Populated with Post Titles"

$
0
0

Hi,

I'm trying to add a SELECT element to my form. I would like to populate this element with a list of POST titles from a particular category.

The quick and easy solution we're employing for now, is to manually fill in the SELECT with the titles of the posts. The downside to this is everytime a post is added, the form needs to be manually updated as well.

One option is to, on page load, use some jQuery to populate the element with a list that is output elsewhere in the template.

The ideal solution, however, would be to have the CF7 shortcode do this work for me, but from what I can tell, I can't add PHP to the Form editor in the backend.

Any ideas how I could get a SELECT element populated with POSTS' titles in my Contact Form?

http://wordpress.org/extend/plugins/contact-form-7/


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>