How to pull and auto display custom fields values to contact form

May be try like this: foreach( $post_ids->posts as $id): // get the post title, and apply any filters which plugins may have added // (get_the_title returns unfiltered value) $name[] = apply_filters(‘the_title’, get_the_title($id)); $lname[] = get_post_meta($id, ‘last_name’, TRUE); $address[] = get_post_meta($id, ‘address’, TRUE); $cinfo[] = get_post_meta($id, ‘contact_info’, TRUE); endforeach; $data = [‘fname’=>$name, ‘lname’=>$lname, ‘address’=>$address, ‘cinfo’=>$cinfo]; <script> … Read more

Contact Form 7 submission does not complete [closed]

There is a fatal error in the theme you are using. When I checked the response in firebug console, I got the following error Fatal error: Cannot use object of type WP_Error as array in /home/content/s/b/r/sbrenan/html/peteshighway.com/wp-content/themes/peteshwy/functions.php on line 96 Either you fix this or contact with the theme support team.

I’ve broken the short code for Contact Form 7!

From the codex: The shortcode parser uses a single pass on the post content. This means that if the $content parameter of a shortcode handler contains another shortcode, it won’t be parsed. http://codex.wordpress.org/Shortcode_API The codex also provides the solution to your issue, which is to use the funciton do_shortcode() If the enclosing shortcode is intended … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)