by Nick | Nov 18, 2016 | Code
Add Advanced Custom Field below the Woocommerce product title called ‘strapline’ on the product category page. You can then style second-tile class to make it look different. <?php //add cubtitle under product name function nssecondtitle() { ?>...
by Nick | Apr 30, 2014 | Code
This PHP allows you to use Shortcode in a WordPress template but also pull in a value from a custom field. This was used to add a shortcode for a slider to a specific page. <?php $slider = get_post_meta($post->ID, 'slider', true); echo...
by Nick | Mar 18, 2014 | Code
If you need to run a plugin which uses shortcodes in your template, this can be done with the following code. <?php echo do_shortcode("[shortcode]"); ?>
by Nick | Feb 19, 2011 | Code
Add the following to the functions.php file <?php function fn_googleMaps($atts, $content = null) { extract(shortcode_atts(array( "width" => '640', "height" => '480', "src" => '' ), $atts)); return ''; }...
Recent Comments