• Is there some way — template or plugin or otherwise — to create a page that shows all my links (sorted by link category)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Create a new Page Template.
    On that Page Template, make a call to your functionality. Say, to wp_list_bookmarks.
    Make a new Page that uses that template.

    Thread Starter energymv

    (@energymv)

    thanks! i’ll give that a try.

    Thread Starter energymv

    (@energymv)

    i was successful at building a links page https://www.energyanalysis.org/links after adding the following page/code/template (Whatever you call it)…..but how might I remove the round bullets from the link categories on this new page???

    <?php
    /*
    Template Name: Links Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    
    	<div id="contentleft">
    
    	<?php wp_list_bookmarks('title_li=&categorize=1&between= - &show_description=1'); ?>
    
    	</div>
    
    	<?php include(TEMPLATEPATH."/l_sidebar.php");?>
    
    	<?php include(TEMPLATEPATH."/r_sidebar.php");?>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>

    I took your code, made it into a ‘Page Template’, and removed the bullets and made it look all nice and pretty.

    <?php
    /*
    Template Name: Links Page
    */
    ?>
    
                    <?php get_header(); ?>
    
                    <div id="posts" class="page">
    
                            <?php while(have_posts()) : the_post(); ?>
    
                                    <div class="post" id="post-<?php the_ID(); ?>">
    
                                            <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
                                            <div class="entry">
    
    <?php wp_list_bookmarks('&amp;category_before=&amp;category_after=&amp;title_before=<h3>&amp;title_after=</h3>&amp;show_images=0&amp;show_images=1'); ?>
    
                                            </div>
    
                                    </div>
    
                            <?php endwhile; ?>
    
                    </div>
    
                    <?php get_sidebar(); ?>
    
                    <?php get_footer(); ?>
    
                    <?php wp_footer(); ?>
    
            </div>
    
    </body>
    </html>

    To use it, create a new static page and set ‘Page Template’ to ‘Links Page’. The Page Template setting can be found on the right hand side toolbar in WP 2.7.

    The code above can be seen in action at https://www.jackscott.org/links-page/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to create a links page…’ is closed to new replies.