Pagination with CodeIgniter

When you perform a search on Google, the results are displayed in a list and you have the option to click through pages of the results. That is an example of pagination. Pagination simply means the user has the ability to click through the pages of results, viewing a subset of them each time, rather … Continue reading

Rate this:

Facebook Like Box

// Put this code below body tag. <div id=”fb-root”></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//connect.facebook.net/en_US/all.js#xfbml=1&appId=424722887568340″; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’, ‘facebook-jssdk’));</script> //Recive Your Page Code from FB //URL http://developers.facebook.com/docs/reference/plugins/like-box/ // and any where u want. <div data-href=”http://www.facebook.com/TheTrainersEdge.JasonDepaoli&#8221; data-width=”292″ data-colorscheme=”dark” data-show-faces=”true” data-stream=”true” … Continue reading

Rate this:

Selection Color

// Put This Code In Style Sheet ::-moz-selection { color: gold;  background: red; } ::selection      { color: gold;  background: red; }

Rate this:

Parent Post

Get Parent Page ID in WordPress – $post->post_parent http://wordpress.org/extend/plugins/multiple-post-thumbnails/ http://wordpress.org/extend/plugins/custom-post-template/installation/

Rate this:

Child Post

foreach ($services_posts as $service_data) { $args = array( ‘sort_column’     => ‘menu_order’, ‘numberposts’     => 100, ‘orderby’         => ‘post_date’, ‘order’           => ‘DESC’, ‘post_type’       => ‘services’, ‘parent’          => $service_data->ID, ‘hierarchical’      => true, ‘child_of’          => $service_data->ID, ‘post_status’     => ‘publish’ ); $child_posts=get_pages( $args ); $permalink = get_permalink($service_data->ID); echo ‘<li><a href=’; if(!empty($child_posts)) echo get_permalink($child_posts[0]->ID); else echo … Continue reading

Rate this:

Cutome Post

// Help  URL : http://codex.wordpress.org/Function_Reference/register_post_type // Put This Code into function.php add_action( ‘init’, ‘slider_custom_init’ ); function slider_custom_init() { $labels = array( ‘name’ => _x(‘Slider’, ‘post type general name’), ‘singular_name’ => _x(‘Slider’, ‘post type singular name’), ‘add_new’ => _x(‘Add New Slider’, ‘student’), ‘add_new_item’ => __(‘Add New Slider’), ‘edit_item’ => __(‘Edit Slider’), ‘new_item’ => __(‘New Slider’), ‘all_items’ … Continue reading

Rate this:

Add Atribute Custome Fields Display

<?php $args = array( ‘orderby’         => ‘post_date’, ‘order’           => ‘DESC’, ‘post_type’       => ‘slider’, ‘post_status’     => ‘publish’ ); $slider_posts=get_posts(  $args ); foreach ($slider_posts as $slider_post) { $meta_values = get_post_meta($slider_post->ID, ‘Link’, $single); $metas = explode(“\n”, $meta_values[0]); foreach($metas as $meta) { echo ‘<li>’.$meta.'</li>’; } } die(); ?>

Rate this:

Welcome to My Blog

Rate this: