Tags » Learn WordPress

How to use wp_star_rating function in the front end themes of the wordpress?

Below function for displaying the stars in the front end:

by default it will work on admin screens. To work on front end  we need to add some styles in the front end. 531 more words

Learn Wordpress

Wordpress Video Center

WordPress Video Center
WordPress Tutorials With Over 50 Videos, Learn How To Use WordPress The Fastest and Easiest Way. No More Countless Hours Trying To Learn WordPress. 10 more words

WordPress I Class: Students Tell Students What They Need to Know

Clark College’s class isn’t a typical class. It is a class that evolves each quarter with each collection of students. Students contribute tutorial articles to the student-managed and produced online magazine, … 1,751 more words


How do I generate a custom menu/sub-menu system using wp_get_nav_menu_items in wordpress?

$menu_name = 'main_navagation';
 $locations = get_nav_menu_locations();
 $menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
 $menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
 <nav id="cbp-hrmenu" class="cbp-hrmenu">
 $count = 0;
 $submenu = false;
 foreach( $menuitems as $item ):
 // get page id from using menu item object id
 $id = get_post_meta( $item->ID, '_menu_item_object_id', true );
 // set up a page object to retrieve page data
 $page = get_page( $id );
 $link = get_page_link( $id );
 // item does not have a parent so menu_item_parent equals 0 (false)
 if ( !$item->menu_item_parent ):
 // save this id for later comparison with sub-menu items
 $parent_id = $item->ID;
 <a href="<?php echo $link; ?>">
 <?php echo $page->post_title; ?>
 <?php endif; ?>
 <?php if ( $parent_id == $item->menu_item_parent ): ?>
 <?php if ( !$submenu ): $submenu = true; ?>
 <div class="cbp-hrsub">
 <div class="cbp-hrsub-inner"> 
 <ul class="sub-menu">
 <?php endif; ?>
 <a href="<?php echo $link; ?>"><?php echo $page->post_title; ?></a>
 <?php if ( $menuitems[ $count + 1 ]->menu_item_parent != $parent_id && $submenu ): ?>
 <?php $submenu = false; endif; ?>
 <?php endif; ?>
 <?php if ( $menuitems[ $count + 1 ]->menu_item_parent != $parent_id ): ?>
 <?php $submenu = false; endif; ?>
 <?php $count++; endforeach; ?>

Learn Wordpress

Welcome to MissterBig.com

A simple introduction to the MissterBig.com WordPress Network


How to register menus in wordpress custom themes

Add the below function to your themes functions.php file.
add_action( 'init', 'register_my_menus' );
function register_my_menus() {
			'main-nav-menu' => __( 'Main Navigation Menu' ),
			'sidebar-menu' => __( 'Sidebar Menu' ),
			'footer-menu' => __( 'Footer Menu' )
Learn Wordpress

How to Enable ZIP Extension for PHP on Linux - Ubuntu - ZIP.SO - PHP.INI - Efront - XAMPP/LAMPP

Download XAMMP from:

That contains Apache 2.4.3, MySQL 5.5.27, and PHP 5.4.7.

Follow instructions on the site (All it takes is just download and unzip into /opt/lampp. 255 more words

Learn Wordpress