Ask your WordPress questions! Pay money and get answers fast! (more info)

Need someone to build me a snippets area WordPress


Hi I am not good with php and am trying to build a snippets section like this Can someone please help me build something like this? I am not sure how to go about it. I would prefer if you wrote the code and then explained it to me. That way its fastest.

Answers (2)


Sabby Sam answers:

I can help you. My skype Id is sabiresm and my gtalk id is
let me know.


tong chen answers:

<h1>Code Snippets</h1>
$categories_obj = get_categories(array('orderby' => 'slug')); //get categories
foreach($categories_obj as $cat): //loop ?>
<div class="content-wrap">
<h4 class="entry-title"><?php echo $cat->name;?><span class="headline-all"><a href="<?php echo get_category_link( $cat->term_id ); ?>">View All ยป</a></span></h4>
$args = array(
'cat'=>$cat->term_id, //Posts for category id
'showposts'=>6 //posts count
if( have_posts() ) : ?>
while( have_posts() ) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title();?></a></li>
<?php endwhile; ?>
<?php endif;?>
<?php endforeach; ?>