Posts

Custom Functions Wordpress.

 <?php  /* Service Post Start */ function register_services_post_type() {     $labels = array(         'name'               => _x('Services', 'post type general name'),         'singular_name'      => _x('Service', 'post type singular name'),         'menu_name'          => _x('Services', 'admin menu'),         'name_admin_bar'     => _x('Service', 'add new on admin bar'),         'add_new'            => _x('Add New', 'service'),         'add_new_item'       => __('Add New Service'),         'new_item'           => __('New Service'),         'edit_item'          => __('Edit Service'), ...

How to add Breadcrumbs in the wordpress?

  http://www.qualitytuts.com/wordpress-custom-breadcrumbs-without-plugin/ Step 1 Breadcrumbs are the important part of our website, in wordpress there are several plugins are available for this, but below i posted the code for custom breadcrumbs for our wordpress site. Just add this below code in to your current wordpress theme functions.php and call the second step. <?php function qt_custom_breadcrumbs () { $ showOnHome = 0 ; // 1 - show breadcrumbs on the homepage, 0 - don't show $ delimiter = ' &raquo; ' ; // delimiter between crumbs $ home = ' Home ' ; // text for the 'Home' link $ showCurrent = 1 ; // 1 - show current post/page title in breadcrumbs, 0 - don't show $ before = ' <span class="current"> ' ; // tag before the current crumb $ after = ' </span> ' ; // tag after the current crumb global $ post ; $ homeLink = get_bloginfo ( ' url ' ); if ( is_home () || is_...