by Nick | Aug 31, 2013 | Code
Simple Joomla code to cloak an email address. $email = 'email@domain.com'; $cloaked = JHTML::_('Email.cloak',$email); echo $cloaked;
by Nick | Jul 7, 2013 | Code
Add this to your template where you want the menu to appear <?php $menu_slug = get_post_meta($post->ID,'menu',true); if(is_nav_menu($menu_slug)) { wp_nav_menu(array( 'menu' => $menu_slug )); } ?> Within each post or page add the custom field menu and set...
by Nick | Aug 5, 2012 | Code
Add the following your your footer.php file <?php $today = date("Y"); echo $today; ?>
by Nick | Mar 1, 2011 | Code
Use this to target code if a certain page exists, useful to show gallery images in a sidebar if there is a gallery page. <?php if(get_page_by_title('Gallery')) : {code here} endif; ?>
Recent Comments