"Links" Section Has Different Format Than Other Sections? (3 posts)

  1. aaaaaz31a2asd3sse21123001010aaaaa222sadzr
    Posted 10 years ago #


    My "links" section on my sidebar, when called from the database with the code below, does not format the same way as my other sections (pages, categories, etc).

    <h2 class="sidebar-title">Links</h2>
    <?php get_linksbyname('', '', '><br />', '', TRUE, 'name', FALSE, FALSE); ?>

    See what I'm talking about here: http://www.xelizer.net/blog/
    Look on the sidebar, on the right, under Links. There are no bullets like there are for the categories above and the pages above. How come?
    I've tried adding <dt></dt> <p></p> <li></li> but nothing worked.


  2. syrupcore
    Posted 10 years ago #

    you need to wrap the individual items with <li>s. I dont remember which one to put them into. check the codex under get_links... and replace the 'before' and 'after' positions with <li> and </li>.

    you can dump the <br /> at that point.

    hope it helps.

  3. aaaaaz31a2asd3sse21123001010aaaaa222sadzr
    Posted 10 years ago #

    oh, thanks!

    jeez i'm stupid...I tried that before, but i left the <br> in there, and everything came out bad. taking that out fixed everything!

    thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 10 years ago by aaaaaz31a2asd3sse21123001010aaaaa222sadzr
  • Latest reply from aaaaaz31a2asd3sse21123001010aaaaa222sadzr
  • This topic is not resolved