How to change title tags on paginated posts?

Is “WP SEO” = “WordPress SEO by Yoast”? If so, the plugin has some tags for you: %%page%% – Replaced with the current page number (i.e. page 2 of 4) %%pagetotal%% – Replaced with the current page total %%pagenumber%% – Replaced with the current page number Just look at the bottom of the page wp-admin/admin.php?page=wpseo_titles, … Read more

How to avoid duplicate posts on front page?

Don’t use an && like that. And don’t use query_posts() in the first place (It’s meant for modifying a query, not performing a separate query!) Instead, do your first selection, then pull out the IDs of the posts in that selection and pass them into the second query. $fruit = get_posts( array( ‘posts_per_page’ => 3, … Read more

Real time Duplicate title check

You can hook ‘save_post’ or ‘wp_insert_post’ (both executed the same in wp_insert_post()) to check for autosaves and notify the author(s) accordingly. The checks that I would do would be to check that the author of the autosave (aka, revision) and the new autosave are not the same, check that the post title is the same … Read more