• I am both excited and depressed since the 2.1 release. I have to do a lot of coding and not being a developer means the task seems really arduous. I require your help in fulfilling some easier tasks before moving on to more difficult ones.

    I have a links page here and it looks pretty neat: http://www.bhooshan.com/links. I need to do a similar thing on WP 2.1 where suddenly everything has changed. I read someplace about using the wp_bookmarks tag but I am unsure about the same. Can someone help me design a links page similar to the URL above?

Viewing 15 replies - 1 through 15 (of 15 total)
  • I think you an use <?php wp_list_bookmarks('before=<li class="your class">&after=</li>'); ?>. This tag creates a normal formatted list (ul, li) with all your link categories and titles as h2.

    Before and after (each link) is default <li></li> and if you wish to show your links next to each other you have to put your own class in it.

    Thread Starter Bhooshan

    (@bhooshan)

    Hi Evita. Thanks for the reply. Just needed some clarification. I am using the BLIX theme and I have created a page called ‘Links’. On that page I have inserted the following code which is executed by a plugin called ‘Exec PHP’.
    ‘<phpcode>< ?php wp_list_bookmarks();?></phpcode>’

    I then inserted the code in the following manner
    ‘<phpcode>< ?php wp_list_bookmarks();?></phpcode>’ but it is not working. Let me know if I am doing something awkward.

    Hi maybe that your exec plugin doesn’t work
    try this one..
    http://bluesome.net/post/2005/08/18/50/

    acitvate it and without extra code you can use php in your articles or pages if your userlevel is >8 or so,
    please read the author plugins page about this.

    or you have a typo:
    <?php without space between the < and the ?…

    regards
    Monika

    It should work, IΒ΄ve tried it 5 minutes ago.
    Have you the correct code <?php wp_list_bookmarks(); ?>? Take care of the spaces.

    Thread Starter Bhooshan

    (@bhooshan)

    Hi Evita/Monika. This is what I put on the page
    ‘<phpcode><?php wp_list_bookmarks(); ?></phpcode>’ yet it is not working. Dunno the problem yet πŸ™

    Maybe Exec PHP is not working correctly. But you can create a new page template and put the code in it, so you donΒ΄t need this plugin.
    Info:
    A page template is a copy of your existing page.php. Put at the top of this new page:
    <?php
    /*
    Template Name: yourname
    */
    ?>

    and instead of <?php the_content(); ?> you put the bookmark code. Save it under yourname.php (better not links.php), upload and then go to Admin/Manage/Pages/yourexistinglinkpage and delete all content. After this mark on the right side under page templates your new page template. Save.

    Hope this helps and you can understand my bad English.

    <?php wp_list_bookmarks(‘before=<li class=”your class”>&after=’); ?>

    Thats not simple… πŸ™

    Thread Starter Bhooshan

    (@bhooshan)

    Evita, well thanks for your recommendation and must say that your english is better than mine :D. I would work upon your comments as far as I have gathered and let you know later in the day.

    Thread Starter Bhooshan

    (@bhooshan)

    Hi Evita. Was successful in one way by making the page work. Just that the page format has completely vanished. Check it out here http://www.bhooshan.com/labs/links

    Suggest some solution πŸ™

    For displaying links next to each other give them a unique class or try
    <?php wp_list_bookmarks('before=<li style="display:inline">&after='); ?>

    Have you only one link category?

    Thread Starter Bhooshan

    (@bhooshan)

    No I have got some more categories but none of them are visible. You can refer to my current links page on the LIVE website.

    Also I updated the code as above and doesn’t seem to be working:
    <?php
    /*
    Template Name: linkspage
    */
    ?>
    <?php get_header(); ?>
    <!-- content ................................. -->
    <!--<div id="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <? include("adsense.php"); ?>
    <!-- staticPage -->
    <div style="float:right; padding-bottom:10px;">
    <? InsertAdvert($StaticIndentFormat); ?>
    </div>-->
    <?php wp_list_bookmarks('before=<li style="display:inline">&after='); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    </div> <!-- /content -->
    <!-- staticPageFoot -->
    <div style="padding-top:10px;text-align:center;">
    <? InsertAdvert($StaticFooterFormat); ?>
    </div>
    <?php get_footer(); ?>

    Very strange. Here another code for trying:
    <ul class="links"><?php get_links_list(); ?></ul>
    and in your stylesheet:
    .links li {display:inline;}

    Thread Starter Bhooshan

    (@bhooshan)

    Hi Evita. Inserted the code as you said πŸ™ But no luck yet. BTW, I also noticed that ALL the links categories that I had previously have been fused into one called ‘Caricatures’ and I have no clue on how to bring back the originals πŸ™

    I also tried replacing the stylesheet with the original but to no effect πŸ™ Let me know of some solution

    Thread Starter Bhooshan

    (@bhooshan)

    Thread Starter Bhooshan

    (@bhooshan)

    I think I have hit a major roadblock here in implementing 2.1 on my server πŸ™

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘My Links Page like old times [WP 2.1 question]’ is closed to new replies.