I want to put my blogroll on a static page and not on the sidebar. Is this possible?
I want to put my blogroll on a static page and not on the sidebar. Is this possible?
Sure ,
Create a page, and use ,<?php wp_list_bookmarks(); ?>
Thats great and its working for me, but is there a way to style this page ?
@cyanalab There lots of ways to go about this, but since wp_list_bookmarks puts the classes "xoxo blogroll" on each ul that it generates, you could add those selectors do your stylesheet, ie:
xoxo li { property: value }
xoxo li a { color: #ff0; text-decoration: none }I can't get this to work. I am creating a page in wordpress, adding the code in the html editor view, and publishing the page. Still, no links appear even though there are links in the blog roll. Any advice? Thanks in advance
another possibility is via the sidebar widget "blogroll." go into functions.php and create a new "sidebar" function. this new function will appear in the drop-down menu in widgets section. place the new sidebar where you want it on your new page and drop the blogroll widget in there.
@hereintokyo WordPress doesn't run PHP scripts from Page/Post content (even from HTML view). There's a plugin that makes this happen in WP 2.6, but otherwise you need to make a page template for this.
<?php
/*
Template Name: Links Page
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php wp_list_bookmarks(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
The header, content, sidebar, footer is the basic page structure from the Default WordPress theme. Yours may differ. The important part is getting wp_list_bookmarks in a template and working.
dressedinvalue, thanks! That worked!
This topic has been closed to new replies.