/** * Custom shortcode to display WPForms form entries in table view. * * Basic usage: [wpforms_entries_table id=”FORMID”]. * * Possible shortcode attributes: * id (required) Form ID of which to show entries. * user User ID, or “current” to…Continue reading
add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });Continue reading
// Shortcode to get post date function g9_get_post_date() { return ‘‘ . get_the_date() . ‘‘; } add_shortcode(‘post_date’, ‘g9_get_post_date’);Continue reading
add_shortcode( ‘product_count’, ‘product_count_shortcode’ ); function product_count_shortcode() { global $wp_query; $total_product_count = $wp_query->found_posts; $current_page = max( 1, get_query_var( ‘paged’ ) ); $products_per_page = get_option( ‘posts_per_page’ ); $start_product = ( ( $current_page – 1 ) * $products_per_page ) + 1; $end_product =…Continue reading
add_filter(‘woocommerce_default_catalog_orderby’, ‘quadlayers_catalog_orderby_for_category’); function quadlayers_catalog_orderby_for_category( $sort_by ) { if( !is_product_category(‘gramatas’) ) { return $sort_by; // modify gramatas category archive sorting } return ‘date’; }Continue reading
add_filter( ‘totaltheme/header/menu/is_custom’, ‘__return_true’ );Continue reading
add_filter( ‘totaltheme/topbar/social/link_attributes’, function( $attrs ) { $attrs[‘rel’] = ‘nofollow’; return $attrs; } );Continue reading