Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow.

Does wp_nav_menu() allow this or does it require a custom walker to manually ad rel="nofollow"?

share|improve this question
Why a nofollow ? Are you concern about search engines following the link ? If is that, you should know that search engines will not index these pages simply because they are behind the log-in function (no password = no access to the page) –  user983248 May 7 '12 at 13:21

2 Answers 2

up vote 2 down vote accepted

Advanced Menu Properties

As you can see above, the Advanced Menu Properties are hidden under the Screen Options pull down tab located in the upper-right corner of WordPress Dashboard.

NOTE: Make sure that you are in the Menus screen: http://yoursite.com/wp-admin/nav-menus.php

W.r.t your question, the Link Relationship (XFN) option is what you want "check". Then the appropriate field will show up for each menu item allowing you to define its relationship (rel="____"). You can also leave it blank for some items (meaning, no relationship will be specified).

share|improve this answer

Some years ago there was the only reason to use rel="nofollow" attribute on internal links — PageRank sculpting. These days are gone forever.

If you don't want some pages to be indexed, use a plugin (e.g. WordPress SEO by Yoast) to add <meta name="robots" content="noindex, follow" /> to the head section of these pages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.