{"id":240,"date":"2010-03-23T14:24:48","date_gmt":"2010-03-23T21:24:48","guid":{"rendered":"http:\/\/astrologymediapress.com\/astroblogging\/?p=240"},"modified":"2010-03-23T14:24:48","modified_gmt":"2010-03-23T21:24:48","slug":"how-i-moved-my-wordpress-blogroll-from-my-sidebar-to-a-page","status":"publish","type":"post","link":"https:\/\/astroblogging.net\/?p=240","title":{"rendered":"How I Moved My WordPress Blogroll From My Sidebar to a Page"},"content":{"rendered":"<p>If you link to lots of other astrology blogs, that long list in your sidebar could make your pages much longer than you want them to be. In addition, I&#8217;ve heard tell that a link loses its power when it is duplicated on every single page of your site. If you&#8217;re somewhat technically proficient with WordPress, there is an easy way to remove the blogroll from your sidebar and feature it only on one page. (These instructions are heavily lifted from <a href=http:\/\/www.atmaxplorer.com\/2008\/01\/blogroll-page-for-wordpress\/>Atma Explorer<\/a>. I&#8217;ve added nothing really new, but I&#8217;m so excited that I was able to do this that I wanted to share it with you.)<\/p>\n<p>First, go into your WP Dashboard > Appearance > Editor. Find the page.php file and copy its contents. Paste the contents into a text editor, and replace <\/p>\n<p><b>&lt;?php the_content(&#8230;); ?&gt;<\/b> <\/p>\n<p>with <\/p>\n<p><b>&lt;?php wp_list_bookmarks(&#8221;); ?&gt;<\/b><\/p>\n<p>Then, at the very top of the file, add the following:<\/p>\n<p><b>&lt;?php<br \/>\n\/*<br \/>\nTemplate Name: Links<br \/>\n*\/<br \/>\n?&gt;<\/b><\/p>\n<p>If you want to change the default output of the <b>wp_list_bookmarks(&#8221;)<\/b> function, you can refer to the <a href=http:\/\/codex.wordpress.org\/wp_list_bookmarks>codex<\/a>. Because I have more than one category of bookmarks, I decided to list my astrology blogroll on a page, and leave links to blog directories in the sidebar widget. I changed mine to <b>wp_list_bookmarks(&#8216;categorize=0&#038;category=84&#038;title_li=0&#8217;)<\/b>. Here, I&#8217;m basically saying I don&#8217;t want the category title to show, and I only want to display the links in category 84 &#8211; my astrology blogroll. (To find out the category number, go to Link Categories in the dashboard. Click on the edit link for the category you want to feature, and you will see the number at the very end of the URL.)<\/p>\n<p>Finally, save the file as &#8220;links.php&#8221;<\/p>\n<p>The next step: upload links.php via FTP to <b>&#8230;\/wp-content\/themes\/[name of theme you are using]\/<\/b>. Once it is uploaded, you will be able to edit it within the dashboard.<\/p>\n<p>The last step: Go to the dashboard and create a New Page. Give it a title. (I called mine <a href=http:\/\/sasstrology.com\/friends>Friends<\/a>.) Leave the body of the page blank. To the far right, look for the &#8220;Attributes&#8221; box. Under &#8220;Template,&#8221; you will see a drop-down list. Choose &#8220;Links.&#8221; Then hit Publish.<\/p>\n<p>That&#8217;s it! Now, any time you add a link to your blogroll (at least for the category you&#8217;ve specified) it will automatically update to your new links page.<\/p>\n<p><b>About the Author<\/b><br \/>Jeffrey Kishner is publisher of <a href=http:\/\/sasstrology.com>Sasstrology<\/a>. He offers <a href=http:\/\/jeffreykishner.com\/wordpress-blog-customization-search-engine-optimization-social-media-marketing\/>blog customization<\/a> services.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you link to lots of other astrology blogs, that long list in your sidebar could make your pages much longer than you want them to be. In addition, I&#8217;ve heard tell that a link loses its power when it &hellip; <a href=\"https:\/\/astroblogging.net\/?p=240\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/astroblogging.net\/index.php?rest_route=\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/astroblogging.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astroblogging.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astroblogging.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/astroblogging.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":0,"href":"https:\/\/astroblogging.net\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"wp:attachment":[{"href":"https:\/\/astroblogging.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astroblogging.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astroblogging.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}