• Hi

    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: https://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.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Links” Section Has Different Format Than Other Sections?’ is closed to new replies.