Generating rel=prev and rel=next only on wordpress categories

Not entirely sure if I agree with the explanation of your SEO guy as rel=prev and rel=next are used for paginated archives. Of course categories can be one, but also your blog if it’d contain multiple pages. Anyways, here’s what I’m currently using: remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’ ); add_action( ‘wp_head’, ‘cor_rel_next_prev_pagination’ ); /** * Pagination with … Read more

Remove site name from title post

Check your theme (header.php). If it uses something like this : <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title> You can use this filter : add_filter( ‘wp_title’, ‘wpse104667_wp_title’ ); function wpse104667_wp_title( $title ) { global $post; if( is_singular() && !is_front_page() && !is_home() && !is_404() && !is_tag() ) $new_title = get_the_title($post->ID) ; return $new_title; } EDIT: add … Read more

What does short_ping do?

If the comment is a pingback or a trackback and short_ping is true then the comment is processed by the ping method which formats the comment differently than either the html5_comment method or the comment method both of which create a much longer more complicated format than does the very minimal ping method. You can … Read more

Plugin to automatically change anchor text of urls to the destinations title?

Decided to entertain the idea. Adapted from my snippet that changes anchors to collapsed domain names. Little too verbose, but seems to work. add_filter( ‘the_content’, ‘anchors_to_page_titles’ ); function anchors_to_page_titles( $content ) { preg_match_all( ‘/<a.*?href=”https://wordpress.stackexchange.com/questions/6023/(.*?)”.*?>(.*?)<\/a>/’, $content, $matches ); array_shift( $matches ); foreach( $matches[0] as $key => $url ) { $anchor = $matches[1][$key]; if( $url == $anchor … Read more

Page Revision date displaying on google search

So I finally figured out how to remove the dates displayed on my pages within a google search, turns out there was a hidden span tag on all of my pages that google was using to get the date All I had to do was find the code that added that hidden span tag to … Read more

Auto-Generate Longtail-SEO Pages/URLs

Hm, likely if there are complete lists of options for “mood” and “location” than there could just be a script that generates all combination of them and – while generating – double check if there is actually enough content for them. And then put them in the sitemap that google uses for getting to know … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)