May 30, 2017

Option field value not loading on Archive page – WP_Query

  <?php global $development_logos; add_action(‘init’, ‘development_logos’); function development_logos(){ global $development_logos; $development_logos = get_field(‘development_logos’,’option’); } function dev_logos_func( $atts ){ global $development_logos; $devLogos = ‘<div id=”logos”>’; foreach($development_logos as $the_row){ $devLogos .= ‘<a href=”‘.$the_row[‘dev_url’].'” target=”_blank”>’.$the_row[‘dev_name’].'</a><div class=”logosTxt”>’.$the_row[‘dev_text’].'</div>’; } $devLogos .= ‘</div>’; return $devLogos; } add_shortcode( ‘dev_logos’, ‘dev_logos_func’ );

February 18, 2017

WooCommerce Email Hooks

Source: https://businessbloomer.com/woocommerce-visual-hook-guide-emails/

January 20, 2017

WordPress Plugin – Chameleon

WordPress Plugin – Chameleon

September 30, 2016

WordPress Plugin – WP Quick Shop

WordPress Plugin – WP Quick Shop

August 29, 2016

s2member

Setup WooCommerce Discounts and link with s2Member user roles/level: How it works? Create membership levels with s2member > Membership Levels/Labels.  | Video Tutorial If membership levels are created already so you will have them in “Membership Level” dropdown here (on this page, see left). Now select Discount Type either fixed price discount or percentage discount. Now […]

February 28, 2016

WordPress Plugin – WP Sort Order

WP Sort Order

November 11, 2015

WooCommerce get products by tags

function get_products_and_packages(){ $args = array( ‘post_type’      => ‘product’, ‘posts_per_page’ => -1, ‘product_tag’      => array(‘package’) ); $packages = get_posts($args); $currency = get_woocommerce_currency_symbol(); $arr = array(); if(!empty($packages)): foreach($packages as $package): $meta = get_post_meta($package->ID); $arr[$package->ID][‘name’] = $package->post_name; $arr[$package->ID][‘title’] = $package->post_title; $arr[$package->ID][‘price’] = current($meta[‘_regular_price’]); $arr[$package->ID][‘display_price’] = $currency.$arr[$package->ID][‘price’]; endforeach; endif; return $arr; }

August 28, 2015

WordPress Plugin – WP Datepicker

WordPress Plugin – WP Datepicker