Designing the future of your business!

How to query a loop for second time on same page?

Posted September 18th, 2011 by Dimitar with No Comments

Well prety easy…
Just put  <?php rewind_posts(); ?> between the loops.
See example bolow:
<?php query_posts(‘posts_per_page=5′); ?>
<?php while ( have_posts()) : the_post(); ?> <?php if (has_tag('')) { ?> <?php }; ?> <?php endwhile; ?> <?php rewind_posts(); ?> <?php query_posts('posts_per_page=5'); ?> <?php while ( have_posts()) ...

read more

My Ping List! It’s AWERSOME!

Posted September 12th, 2011 by Dimitar with 1 Comment

Copy and paste this you know where!
If I missed anything write it in comments. (more…)

read more

How to get rid of duplicate posts in WordPress with MySQL Query.

Posted September 7th, 2011 by Dimitar with No Comments

1. Login to phpMyAdmin
2. Click on SQL tab
3. Copy and paste this in the query box.
DELETE bad_rows.* from wp_posts as bad_rows inner join ( select post_title, MIN(id) as min_id from wp_posts group by post_title having count(*) > 1 ) as good_rows on ...

read more