New answers tagged

0

Unfortunately there is no hook for above the fields (perhaps you might want to submit a patch/feature request on trac?) You'll have to get by with JavaScript: <p id="klantnr-field"> <label for="klantnr">Klantnummer<br> <input type="text" tabindex="20" size="10" value="" class="input" id="klantnr" ...


0

Just noticed you're using $global $wpdb instead of global $wpdb, so I'm guessing your insert code isn't running.


-3

I personally use and recommend Thrive Leads. It does exactly what you are looking for and unlike most of opt-in plugins, it does not have a monthly fee. Some of the opt-in forms you can create include: Popup Lightbox Content Locking Exit Intent Slide-In Form Opt-In Widget Sticky Ribbon In-Line Forms Scroll Mat Before you spend any money, I recommend you ...


1

You'll have to do this in two steps. First, you will create a post in the draft mode, using wp_insert_post(). The wp_insert_post itself will return to you the ID of the inserted post: <?php $new_post = array( 'post_title' => 'Draft title', 'post_status' => 'draft' 'post_type' => 'my_custom_type' ); $postId = ...


1

Check the documentation: Return: (int|WP_Error) The post ID on success. The value 0 or WP_Error on failure. Thus: $result = wp_insert_post( $data ); if ( $result && ! is_wp_error( $result ) ) { $post_id = $result; // Do something else }


0

So I finally found the solution to the problem. It was in the validate.js function. I corrected the error by calling the outside functions of validate.js and jquerry: script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js" script type="text/javascript" ...


0

By default no action url will mean that the form will be sent to the URL the page was loaded from. Once it is done, the code evaluating the shortcode is checking in the form was submitted and process it. This is not not a great way to write a from processing code, as the evaluation of shortcodes happens too late for doing something like redirect on success. ...


1

Absolutely, no code modification needed. Simply create an eWay feed (looks like it's only available in their Pro version) for the form you want to process with eWay, and set a Stripe feed for the form you want to process with Stripe.


0

The Worflow of a creation form plugin goes something like this: (A) Data is submitted -> Data is placed into the WP database -> Data is handled -> Sending a notification via email and/or placement in the SalesForce database. Whereas work flow need to go something like this: (B) Data is submitted -> Data is handled -> notification is sent ...


1

You can try minify html from the contact form 7 To completely disable the wpautop filter, you can use: remove_filter('the_content', 'wpautop');


0

I would use the Theme My Login for this and register people who fill out the form as users. You'd also need to get their email but you can easily redirect them to their profile after submitting and they'd have access to any of the data from the form. If for some reason you don't want 'users' I would use the gravity forms plugin with the update posts add on. ...


0

If you'd like to use WordPress functions inside your naked PHP file, you'll have to load the WordPress environment: require_once '/path/to/wp-load.php'; That said it's best practice to NOT handle things via separate PHP files like that outside of WordPress, but use a plugin instead and fire your code on an appropriate action. You can use a page template ...



Top 50 recent answers are included