Wordpress rel next & previous for SEO
-
Hi,
I have implemented this function into my wordpress theme. However, I can only get the prev rel to show up. Does anyone have an idea?
function rel_next_prev(){
global $paged;if ( get_previous_posts_link() ) { ?>
}if ( get_next_posts_link() ) { ?>
}}
add_action( 'wp_head', 'rel_next_prev' );
?> -
Hi There
I also do not know how this is done at the coding level in WordPress. The Yoast plugin handles it automatically - that's probably the least painful to get it implemented!
-
This exact question has also been asked on here previously, but without a solution I'm afraid.
I would guess it is something within the theme that is causing this - but what, I do not know. The Yoast SEO plugin is supposed to handle this somehow, but it seems no-one knows how.
Sorry I can't be more help on this one.
-Andy
-
I have page 2, 3, 4 etc.
Somehow the get_next_posts_link() is not fetching anything. In my source, I only have no matter what page I'm on, and it's always fetching the prev link correctly.
-
I know this might sound like a bit of a daft question, but you do have a page 2 of your blog? And if so, when you view the source of that page, do you see something like this?
"prev"` `href=
"http://example.com/">
**``"next"
href=``"http://example.com/page/2/"``>``**
-Andy
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
SEO for a a static content website
Hi everyone, We would like to ask suggestions on how to improve our SEO for our static content help website. With the release of each new version, our company releases a new "help" page, which is created by an authoring system. This is the latest page: http://kilgray.com/memoq/2015/help-en/ I have a couple of questions: 1- The page has an index with many links that open up new subpages with content for users. It is impossible to add title tags to this subpages, as everything is held together by the mother page. So it is really hard to for users to find these subpage information when they are doing a google search. 2- We have previous "help" pages which usually rank better in google search. They also have the same structure (1 page with big index and many subpages) and no metadata. We obviously want the last version to rank better, however, we are afraid exclude them from bots search because the new version is not easy to find. These are some of the previous pages: http://kilgray.com/memoq/2014R2/help-en/ http://kilgray.com/memoq/62/help-en/ I would really appreciate suggestions! Thanks
Technical SEO | | Kilgray0 -
Schema for Banks and SEO
I'm researching Schema opportunities for a bank, but besides the shema markup available today (like bankorcreditunion) and developments with FIBO, I can find no answer as to the effect of tagging interest rates and such in terms of SERP/CTR performance or visibility. Does anyone have a case study to share or some insight on the matter?
Technical SEO | | Netsociety0 -
Coming soon SEO
Hi, I was wondering what is the best practice to redirect all the links juice by redirecting all the pages of your website to a coming soon page. The coming soon page will point to the domain.com, not to a subfolder. Should I move the entire website to a subfolder and redirect this folder to the coming soon page? Thanks
Technical SEO | | bigrat950 -
SEO for mobile
Hey everyone! I had just finished building my first mobile website and i wanna focus on SEO for mobile search. Now, since there is a redirection once a visitor enter to the web domain to the mobile site automatically (e.g. sample.com to m.sample.com). Question is: Where should i refer my back links to to improve my ranking on mobile result page? Would love for some help..
Technical SEO | | Tit0 -
Questionable SEO
Chess Telecom appears first when you search for 'business phone lines' in the UK so I used a campaign to check them out. It seems they've got tons of unrelated links and using comment spamming to increase their ranking. Along with fake twitter accounts and other things. Search for 'jewel jubic chess' and you'll see what i mean. I assumed this wasnt a good idea and been trying to get my link on relevant websites only. Any comments or suggestions? Should I simply trust that google will hopefully punish them eventually? Or should I be fighting fire with fire? Thanks Dan
Technical SEO | | DanFromUK0 -
Videos for SEO & Profits
Hello, I'm in the middle of developing a website that will be a tutorial site for SEO, http://universityofseo.com. My plan is to do video tutorials & blog posts to help entry-level SEOs and SMB Owners to help them become familiarized with SEO through quick and easy to watch videos. I eventually want to turn this into a revenue stream through advertisements. I want to know for both SEO and profit reasons, if I should host the videos on youtube and then embed them on my site, or do something like Bits on the Run / Whistia and put ads in the videos that way? I'm not overly obsessed with monetizing the site, but it would be nice to do it, but first and foremost i'm concerned with optimizing the site, having great and actionable content, then monetizing it. I'd appreciate any help on this matter, Zach
Technical SEO | | Zachary_Russell0 -
Rel=Canonical
Any downsides to adding the rel=canonical tag to the canonical page itself? It will make it easier for us to implement based on the way our site's templates work. For example, we would add to the page http://www.mysite.com/original-page.aspx The canonical tag would also appear on other dupe pages like: http://www.mysite.com/original-page.aspx?ref=93929299 http://www.mysite.com/original-page.aspx?ref=view29199292 etc
Technical SEO | | SoulSurfer80 -
SEO tips for RSS feeds?
What SEO advice do you have for RSS feeds? Specifically, does the URL structure matter? Should the be noindex, follow or noindex, follow? Any other advice?
Technical SEO | | nicole.healthline0