Shortcode to Get the Post Date [post_date]
// Shortcode to get post date function g9_get_post_date() { return ‘‘ . get_the_date() . ‘‘; } add_shortcode(‘post_date’, ‘g9_get_post_date’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// 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
/* Featured Neighborhood add-on – Style: Grid with CTA on side (Phoenix) == Start */ .iul_display_grid_1{display:table;width:100%;} .iul_display_grid_cell a img{margin-bottom:0;} .iul_display_grid_cell{display:table-cell;vertical-align:middle;} .iul_display_grid_cell h2 {color:#fff;color:var(–main-primary-color-text-light);} .iul_display_grid_cell:nth-child(1){background-color:#111;background-color:var(–main-primary-color);width:25%;text-align:center;color:#ffffff;color:var(–main-primary-color-text-light);padding:30px 20px;} .iul_display_grid_cell:nth-child(2){width:75%;} .iul_display_grid_cell:nth-child(1) .cta_button{padding:5px 30px;margin:0;border:1px solid #fff;border-color: var(–main-primary-color-text-light); color:#fff;color:var(–main-primary-color-text-light);font-size:16px;border-radius:0px;display:inline-block;text-decoration:none;} .iul_display_grid_1 .ao_fn_gs_gridstandard { display: -ms-grid; display: grid;…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
add_filter( ‘totaltheme/header/logo’, function( $output ) { return ‘‘; } );Continue reading
add_filter( ‘totaltheme/page/header/has_title’, ‘__return_false’ );Continue reading