-
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()) : the_post(); ?>
<?php if (has_tag('')) { ?>
<?php }; ?>
<?php endwhile; ?>
-
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…)
-
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 good_rows.post_title = bad_rows.post_title and good_rows.min_id <> bad_rows.i
4. Click Ok
It should display the number of duplicated entries removed.