game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online game.onenall.com,play free game online

how to add extra filed in user profile page

Adding Extra Fields to the WordPress User Profile or how to add extra filed in user profile page
WordPress offers some great options and function.There are some fileds in the user’s profile page where user can add info like bio but if admin want to provide more option or extra field to user than something write in code. today i am displaying or adding Extra Fields to the WordPress User Profile or how to add extra filed in user profile page Continue reading this entry…

how to configure wp tag cloud manually

how to configure wp tag cloud manually

Well, here is the concept of the tag cloud:

Usage

<?php wp_tag_cloud( $args ); ?>

Default Usage

<?php $args = array(
‘smallest’  => 8,
‘largest’   => 22,
‘unit’      => ‘pt’,
‘number’    => 45,
‘format’    => ‘flat’,
‘separator’ => ‘\n’,
‘orderby’   => ‘name’,
‘order’     => ‘ASC’,
‘exclude’   => ,
‘include’   => ,
‘link’      => ‘view’,
‘taxonomy’  => ‘post_tag’,
‘echo’      => true ); ?>

By default, the usage shows: Continue reading this entry…

how to list all post of a category wordpress plugings





Hi every body mrphpguru here agian.

I am written this artical to list all post of a category wordpress plugings.

Now please open the archive page of the theam.

now just select the are where you want to display all the list of the post of a category.

<div id=”post_ran”>
<div>
<h2>List of post under </h2>
</div>
<div></div>
<?php
// Declare some helper vars
$previous_year = $year = 0;
$previous_month = $month = 0;
$ul_open = false;
// Get the posts
$myposts = get_posts(‘numberposts=10&orderby=post_date&order=DESC’);
?>
<?php foreach($myposts as $post) : ?>
<?php
// Setup the post variables
setup_postdata($post);
$year = mysql2date(‘Y’, $post->post_date);
$month = mysql2date(‘n’, $post->post_date);
$day = mysql2date(‘j’, $post->post_date);
?>
<?php if($year != $previous_year || $month != $previous_month) : ?>
<div>
<div><?php the_time(‘M’); ?></div>
<div><?php the_time(‘d’); ?></div>
</div>
<?php endif; ?>
<?php $previous_year = $year; $previous_month = $month; ?>
<div>
<h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2>
<div>
Posted by <?php the_author() ?> under <?php the_category(‘, ‘) ?> <?php edit_post_link(‘Edit’, ‘| ‘, ”); ?>
</div>
</div>
<div></div>
<?php endforeach; ?>
</ul>
</div>

<div id=”post_ran”> <div> <h2>List of post under </h2> </div> <div></div> <?php  // Declare some helper vars $previous_year = $year = 0; $previous_month = $month = 0; $ul_open = false;   // Get the posts $myposts = get_posts(‘numberposts=10&orderby=post_date&order=DESC’);   ?>   <?php foreach($myposts as $post) : ?>   <?php   // Setup the post variables setup_postdata($post);   $year = mysql2date(‘Y’, $post->post_date); $month = mysql2date(‘n’, $post->post_date); $day = mysql2date(‘j’, $post->post_date);   ?>   <?php if($year != $previous_year || $month != $previous_month) : ?>     <div> <div><?php the_time(‘M’); ?></div> <div><?php the_time(‘d’); ?></div> </div>       <?php endif; ?>   <?php $previous_year = $year; $previous_month = $month; ?>   <div> <h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2> <div>Posted by <?php the_author() ?> under <?php the_category(‘, ‘) ?> <?php edit_post_link(‘Edit’, ‘| ‘, ”); ?> </div> </div> <div></div> <?php endforeach; ?> </ul> </div>

in the above code you can controll the number of post by changing  numberposts=10

$myposts = get_posts(‘numberposts=10&orderby=post_date&order=DESC’);

numberposts=10 means it will display 10 post title

-1 will display all..

thanks

mrphpguru