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.
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.
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… π
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.
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?
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;}
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
I think I have hit a major roadblock here in implementing 2.1 on my server π