Custom form validation

Yes, you’d use a JSON response containing an error property. <?php echo json_encode( [ ‘error’ => [ ‘code’ => ‘my_error_code’, ‘message’ => ‘My error message.’, ‘data’ => [any additional data you need], ], ] ); Your AJAX callback should look for the error and adapt accordingly. For the regular POST, you’d want to generate HTML … Read more

The Events Calendar EventURL not displaying

You problem likely results from the tribe_events_get_the_excerpt() function calling wp_reset_postdata(), which resets the global $post object back to the original query (i.e., the page the footer is on). get_the_ID() returns the ID of the global $post object, so you will get the page’s ID instead of the event’s from within the loop. And setup_postdata() does … Read more

When Attempting to Filter Plugin Generated Content Using Filter post_type_link, Permalinks Are Not Modified

Milo provided the answer in the comments above. I’m recording for posterity sake. 🙂 I was using add_query_arg and should instead have used return $url, so the code above should have looked like: function lqd_message_link( $url, $post ) { global $wp_query; if ( get_post_type( $post ) == ‘gc-sermons’ && isset( $wp_query->query_vars[‘messages-app-view’] ) ) { return … Read more

Moving from Microsoft Front Page 2003 to WordPress

Design your layout front-end. Integrate it to WordPress. (Make it WordPress Theme) Create custom post types and custom contents, custom page templates as per your requirements. Buy new hosting & point your domain’s nameserver to new host. Upload your files & Enjoy. You’ve done it. 😉