Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created April 2, 2015 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckunte/7ff316b7395db38a46d1 to your computer and use it in GitHub Desktop.
Save ckunte/7ff316b7395db38a46d1 to your computer and use it in GitHub Desktop.
Linkroll (or blogroll) for WordPress: Generates a custom blogroll (for use with theme files).
<?php
/*
Template Name: Linkroll
*/
?>
<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_content(); ?>
<ol style="list-style:none; margin:0; padding:0"><?php wp_list_bookmarks('between=<br />&show_images=0&orderby=id&show_rating=1&show_updated=1&show_description=1&between= - '); ?></ol>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2>Not found</h2>
<p><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php endif; ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment