Display Entry Submissions Count for a Specific Form

/** * Shortcode that displays the number of completed entries for a form. * * Usage: [wpforms_entry_total form_id=”X”] – X is the form ID. * * @link https://wpforms.com/developers/display-entry-submissions-count-for-a-specific-form/ */ function wpf_dev_form_entry_total( $atts ) { $args = shortcode_atts( array( ‘form_id’ =>…Continue reading

Create List of Child Pages

function wpb_list_child_pages() { global $post; // Only get child pages of the current page $args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => -1, // get all child pages ‘post_parent’ => $post->ID, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’ ); $child_pages =…Continue reading

Create Additional Schemes for the Address Field

/** * WPForms Add new address field scheme (Canada) * * @link https://wpforms.com/developers/create-additional-schemes-for-the-address-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_new_address_scheme( $schemes ) { $schemes[ ‘canada’ ] = array( ‘label’ => ‘Canada’, ‘address1_label’ => ‘Address Line 1’, ‘address2_label’…Continue reading

Vertically center Instagram caption on hover

jQuery(window).on(‘sbiafterimagesloaded’, function (event) { $ = jQuery; $(‘.sbi_hover_top’).each(function(){ var $self = $(this); $self.css({ ‘position’ : ‘absolute’, ‘top’ : ( $self.parent().height() – $self.height() ) / 2 }); }); })Continue reading