Comment on Remove WordPress Meta Generator Tag by SEO Dave.
Hmm, you might be asking the wrong question.
When you say remove the “Next and Previous Posts Links” do you mean when viewing source of your websites code you see something like this near the top of the code (in the head):
<link rel='prev' title='Yoast WordPress SEO Plugin' https://seo-gold.com/yoast-wordpress-seo-plugin-review/' /> <link rel='next' title='Stallion WordPress SEO' href='https://stallion-theme.co.uk/stallion-wordpress-seo-plugin/' />
If so those next and prev rel links (relative links) are removed by this code
<?php remove_action('wp_head', 'adjacent_posts_rel_link_wp_head'); ?>
If you mean your WordPress theme adds at the top or bottom of the content a link you can click on to the next and previous posts, the above code has no impact on those clickable links.
They will be hard coded into your themes template files. Each WordPress theme is different, but if it’s on the single blog post pages the code might be in the themes single.php file.
Look for code like this:
<?php posts_nav_link(); ?>
If you delete the “posts_nav_link();” code it should remove the next and previous links.
If it’s not in single.php use a text editor like Notepad++ (it’s free) to do a “Search in files” search for
posts_nav_link
Will list where the code is located, could be anywhere, in function.php as part of a function or as part of a part template file.
I consider these potentially SEO damaging links, unless a website is fully niched (only covering one niche) adding two links to the next and previous WordPress post could be adding unrelated links to an article, which is why the above function isn’t part of Stallion Responsive.
No SEO value to a website targeting several distinct niches if they randomly interlink, this post for example is about WordPress, I wouldn’t want it automatically linked to the make money posts or my off topic blogging posts.
David
More Comments by SEO Dave
WordPress Meta Generator Tag
WordPress Navigation Links
Looks like the code is used for the WordPress single page next and previous links and the next and previous links for archives (categories navigation etc…).
Top is for single, bottom archives, either delete the reference to this file on single.php
<?php …
Continue Reading WordPress Version Number
WordPress Meta Generator Tag
Editing WordPress Template Files
In your WordPress themes single.php you’ll probably have a line of code like this:
<?php include (TEMPLATEPATH . "/bot-nav.php"); ?>
Based on bot-nav.php is probably just the code for the next and prev links removing the above line from single.php would remove …
Continue Reading WordPress Version Number
WordPress Meta Generator Tag
Adding HTML/PHP Code to WordPress Comments
To add HTML/PHP code to a WordPress comment you have to put it between code tags, otherwise WordPress strips it to prevent comments looking a mess:
<code>
Add PHP/HTML Code Here
</code>
Doesn’t always work, this isn’t built into WordPress core, so is a …
Continue Reading WordPress Version Number
WordPress Meta Generator Tag
Remove Post Relational Links from WordPress
Glad you figured out how to use FTP, can be a sticking point for those new to website development.
I don’t log into other users websites other than to try to fix issues with my own WordPress themes and then only …
Continue Reading WordPress Version Number
WordPress Meta Generator Tag
Edit WordPress Functions.php File
Like anything in life it’s easy when you know how :-)
Although you can edit the WordPress theme functions.php file under your Dashboard: can pretty much assume all WordPress themes today (2014) have a Functions.php file.
If you make a code mistake …
Continue Reading WordPress Version Number
WordPress Meta Generator Tag
How To Fix WordPress White Screen
WordPress white screen normally means you’ve broken some PHP code.
Revert the code you changed to what it was before the change.
If you worked online with the WordPress editor and you can’t login to to your Dashboard.
Either reupload the unedited theme …
Continue Reading WordPress Version Number