Add external and nofollow options for WordPress link relationship (rel)

WordPress sixty-three 11.7K Reading mode

By default, the Wordpress Linking Network (XFN) provides many options for you to choose from. For example, "workplace relations, geographical relations, family relations and other emotional relations" are very detailed, but they are not reliable, and there is no useful one, such as the nofollow attribute (that is, telling the search engine "do not track the links on this page" Or "Do not follow this specific link".), In addition, WP "rel" does not allow you to manually enter specific attributes, but you can add an external and nofollow option by modifying the WP program file.

Take Wordpress 3.3.2 as an example, open the meta-boxes.php file in the wp admin includes directory, and add (Note: the latest Wordpress 3.5.1 is added below line 830)

  1. <tr>
  2. <th scope= "row" > external nofollow </th>
  3. <td><fieldset><legend  class = "screen-reader-text" ><span> external nofollow </span></legend>
  4. <label  for = "external" >
  5. <input  class = "valinp"  type= "checkbox"  name= "external"  value= "external"  id= "external"  <? php xfn_check('external');  ?>  />external</label>
  6. <label  for = "nofollow" >
  7. <input  class = "valinp"  type= "checkbox"  name= "nofollow"  value= "nofollow"  id= "nofollow"  <? php xfn_check('nofollow');  ?>  />nofollow</label>
  8. </fieldset></td>
  9. </tr>

Then open the link editing page, and the external and nofollow options will appear, as shown in the following figure:

If it is troublesome to modify program files manually, you can install and use related plug-ins: Add-nofollow-to-XFN

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments sixty-three    Visitors fifty-six    Author two
    •  A wall
      A wall four

      This has been posted for a long time. The best way to neither plug in nor modify files is to convert it to a secondary link and then directly block it

      •  Chengdu SEO
        Chengdu SEO one

        Like one

        •  Chengdu website construction
          Chengdu website construction one

          Very good Very powerful

          •  Pudding
            Pudding one

            Plug in free, no pollution in hot weather, ha ha!

            •  andychow1989
              andychow1989 two

              I really think WordPress is powerful!

              •  Tiny Tiny Films
                Tiny Tiny Films one

                Support theme integration and slow down plug-ins

                •  Eternal Tower Base
                  Eternal Tower Base three

                  This is a piece of magic code

                  •  Stupid bird
                    Stupid bird one

                    When will the new version of Brother Bird be released? Hey hey, the wp has not been upgraded yet, and the theme of Brother Bird will be upgraded

                      •  Conners
                        Conners two

                        @ Stupid bird Said to wait until WP3.4 was released

                      •  Door softness
                        Door softness five

                        Finally updated. Go and toss it after reading it

                        •  How to write love letters
                          How to write love letters three

                          Brother Bird is going to issue a new theme? It's really fake. I'm looking forward to it. Brother Bird, isn't he?

                          •  Skull Cat
                            Skull Cat five

                            Brother Bird. I'm bothering you again. What if the summary of each blog post on the home page is selected according to the article layout? Now it seems that they are all mixed together. There is no typesetting at all. It's so messy

                            •  Conveyor
                              Conveyor three

                              Brother Bird's blog is still very popular

                              •  Platform rental
                                Platform rental one

                                Not bad, thanks for sharing.

                                •  Guangzhou Moving Company
                                  Guangzhou Moving Company zero

                                  Very interesting.

                                  •  Guangzhou Decoration
                                    Guangzhou Decoration zero

                                    Hehe, come and step on it.

                                    •  Amoy Xiamen
                                      Amoy Xiamen four

                                      Can you display the announcement on the side widget??? It's like the rambling column on your website is displayed next to it. Because it's hidden from others

                                        •  Robin
                                          Robin

                                          @ Amoy Xiamen You can use the RSS gadget provided with WP to call the announcement classification FEED
                                          For example, my rambling link address is http://zmingcx.com/genre/waffling
                                          Enter in the RSS gadget "Enter RSS feed URL here:" http://zmingcx.com/genre/waffling/feed
                                          that will do

                                            •  Amoy Xiamen
                                              Amoy Xiamen four

                                              @ Robin Thank you very much for answering in person. All right. That is, the topic will not be truncated. But it doesn't matter. thank you

                                          •  Saccade prediction
                                            Saccade prediction zero

                                            Good, learned, very useful code, thanks for sharing

                                            •  wmtimes
                                              wmtimes seven

                                              I don't know whether the functions of Brother Bird are integrated into the template.

                                              •  Hermes Kelly Bag
                                                Hermes Kelly Bag zero

                                                The template is well done and worth downloading

                                                •  The best medicine for body odor
                                                  The best medicine for body odor one

                                                  This code is really good. I've been looking for a long time

                                                  •  Wenzhou Moving Company
                                                    Wenzhou Moving Company four

                                                    WP is still powerful!

                                                    •  Li Junnan
                                                      Li Junnan one

                                                      If it is version 3.31, it should be modified meat.php, right?

                                                      •  Danzi Water Code
                                                        Danzi Water Code zero

                                                        This is not bad. However, it is more practical to nofollow the whole page if you can fill in a few

                                                        •  Yun-mengLakes
                                                          Yun-mengLakes one

                                                          This code is really good. I've been looking for it for a long time!

                                                          •  Aisan
                                                            Aisan two

                                                            GengZhiNiao, have you done the video template you made for me?

                                                            •  Shenzhen Sauna Massage Forum
                                                              Shenzhen Sauna Massage Forum zero

                                                              I used your template together.

                                                              •  Handu Clothing House
                                                                Handu Clothing House zero

                                                                The problem has finally been solved.

                                                                •  Young Pioneers
                                                                  Young Pioneers zero

                                                                  Learned

                                                                  •  Zhou Xiaolong
                                                                    Zhou Xiaolong three

                                                                    I know brother Geng Niao. I want to ask why the "column you like" at the bottom of the article is mine. The four picture boxes on the right show how the left side is blank and there is no text. Can you tell me how to tune it

                                                                    •  Kingston U-disk
                                                                      Kingston U-disk zero

                                                                      Thank you, blogger. I just use your theme. Thank you for sharing. If you have a theme question, can you ask?

                                                                      •  sunset
                                                                        sunset zero

                                                                        Brother Bird, how did you insert code into that article?

                                                                        •  cloud
                                                                          cloud one

                                                                          Well, it's simple and practical.

                                                                          •  Long Jiu
                                                                            Long Jiu zero

                                                                            Ho ho, this is very good, Brother Bird

                                                                            •  Meditate and learn
                                                                              Meditate and learn four

                                                                              Very powerful. I learned that the default link management does not set the link properties properly

                                                                              •  Good movies
                                                                                Good movies zero

                                                                                Brother Bird can share a different dimension blog, and the article page has a sharing bar that scrolls with the page. It's very nice, but I don't know how to achieve it!

                                                                                •  v9zz
                                                                                  v9zz two

                                                                                  Very good. I'll do the same

                                                                                  •  Yiwu Recruitment Website
                                                                                    Yiwu Recruitment Website two

                                                                                    Thanks for sharing the tutorial. I finally learned it today, which proves that I have to improve myself every day when I work in the workplace. Learning ability is very important to constantly improve yourself.

                                                                                    •  Clothes are naturally made
                                                                                      Clothes are naturally made zero

                                                                                      Yes, come on.

                                                                                      •  Meditate and learn
                                                                                        Meditate and learn four

                                                                                        The functions of WordPress are really unreliable. What is needed is not. What is not needed is included.

                                                                                        •  Hurt
                                                                                          Hurt zero

                                                                                          In the My Subscription section of this topic, how to add nofollow to the subscription address feed.feedsky.com

                                                                                          •  Xiaoyao
                                                                                            Xiaoyao three

                                                                                            Thank you. I am now struggling with Nofollow. The content code can not show links but let search engines crawl links. I also need to add Nofollow to let others show but not crawl.

                                                                                            •  Thumb League mobile entertainment network
                                                                                              Thumb League mobile entertainment network zero

                                                                                              But it's not easy to say whether this thing is good for Du Niang. Now only Brother Gu clearly admits that Du Niang is still refusing to return it

                                                                                              •  www.vps.ht
                                                                                                www.vps.ht one

                                                                                                Blogger, have you added a link to yours http://www.vps.ht

                                                                                                •  www.vps.ht
                                                                                                  www.vps.ht one

                                                                                                  It really adds...... I tested it

                                                                                                  •  Nanchang Andrology Hospital
                                                                                                    Nanchang Andrology Hospital zero

                                                                                                    Is it easy to use? How do you use it.

                                                                                                    •  kam
                                                                                                      kam four

                                                                                                      It's really powerful, but does the database need to be modified?

                                                                                                      •  Indoor and outdoor fitness equipment
                                                                                                        Indoor and outdoor fitness equipment zero

                                                                                                        Very detailed

                                                                                                        •  sun
                                                                                                          sun two

                                                                                                          Not bad Not bad

                                                                                                          •  celine outlet
                                                                                                            celine outlet one

                                                                                                            Easy to use... o

                                                                                                            •  Chengdu Express Business Network
                                                                                                              Chengdu Express Business Network one

                                                                                                              The presentation was very detailed

                                                                                                              •  Azhi
                                                                                                                Azhi one

                                                                                                                Brother Bird, how can I add the nofollow option to the hyperlink inserted in the editor?

                                                                                                                •  Liu Liu
                                                                                                                  Liu Liu zero

                                                                                                                  Why can't I find mine? I want to remove nofollow

                                                                                                                  •  Fragmentary thoughts
                                                                                                                    Fragmentary thoughts two

                                                                                                                    In wordpress-3.5.1-zh_CN, the code for adding rel relationship nofollow external bird should be inserted in line 831, the second line under table. Please add it to help us newcomers find it at once.
                                                                                                                    [img] https://s.yunio.com/public/previews/token/2jecqE/size/700/?r=a.jpg [/img]

                                                                                                                    •  Dongguan Decoration Network
                                                                                                                      Dongguan Decoration Network one

                                                                                                                      Thanks for sharing WordPress link relationship (rel) Add external and nofollow options

                                                                                                                     anonymous

                                                                                                                    Comment

                                                                                                                    Anonymous netizens
                                                                                                                     :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                                                                                                                    Drag the slider to complete validation