Feeds

Adding heading to sidebar (post edited)

PerformancingAds
Submitted by George Park on May 28, 2007 - 9:47am in

Seeing I have had limited response to my original post, I will try and elaborate.
Unfortunately, I am not very clued up on css and php.

I would like to add another heading to the side bar below "Blogroll" which I have renamed "Useful Links".

I tried copying and pasting and then changing the names in the php file, but find that all that does is create another heading which contains the same links as in "Useful Links"

I have created an additional category, in the Blogroll Management section of site admin, namely Equipment.

What I am trying to achieve is that Useful Links will show all the links under that category and that the Equipment heading will show all the links categorised Equipment.

The code for the original "Blogroll" heading which I renamed Useful links is as follows:

I have tried to show the code here, but it is not working.

So, on the line get links, there is code in brackets being -1 and li etc

What do I do to get the above code to only retrieve the links categorised "Useful Links" and the heading "Equipment" to retrieve on the "Equipment" Links?

I have tried Sidebar Widgets plugin, but it does not solve the issue.

I hope that I have explained this better this time.


Here is what you have to do

I have had the same problem and the solution is simple:

Find out the ID for both categories Blogroll and Equipment.
You'll find your IDs unter the Categories section within the wordpress admin panel.

Then you have to switch the code in the l_sidebar.php file as follows:

*?php get_links(YOUR ID, '*li*', '*/li*', '', TRUE, 'name', TRUE); ?*
(REPLACE * WITH THE SIGN NORMALLY USED AT THAT PLACES)

so, for example to

*?php get_links(2, '*li*', '*/li*', '', TRUE, 'name', TRUE); ?*
if ID number 2 is the one of the links you want to show under that section.

got it?

All I can say is Thank You,

All I can say is Thank You, easy when you know how.

Very much appreciated.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h2> <h3> <h4> <img> <div> <a> <em> <strong> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <span> <table> <td> <tr> <caption> <th> <hr> <pre> <br> <p> <object> <param> <embed> <strike>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.