Created
April 2, 2015 01:17
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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