Forums

[resolved] get_links adding <em> to every link it returns (4 posts)

  1. jayp
    Member
    Posted 6 years ago #

    I've search all over the place for this.

    I'm using get_links to return a category.

    Here's my code.

    <h2>Our friends'</h2>

    < ul >
    <?php get_links(1,'< li >','< /li >'); ?>
    < /ul >
    Since this is a blog I've just installed, that category 1 is returning the 'Blogroll' that comes with WordPress.

    From what I can understand by reading the documentation on get_links, it looks like each link should be returned like

    < li >< a href="#" > link < /a >< /li >
    yet they're getting returned like this:

    < li >< em >< a href="#" > link < /a >< /em >< /li >
    I can't figure out for the life of me where this tag is coming from.

    Anybody have a clue?

    As a workaround, I use CSS to set the to font-style: normal.

    It works, but doesn't seem ideal to me.

  2. Beel
    Member
    Posted 6 years ago #

    Without a link to your blog it is just a stab in the dark, but could it be a result of one of your plugins? Or something you set incorrectly in the link options?

  3. estjohn
    Member
    Posted 6 years ago #

    in your css do you have em for the li li { } ? em could be in a child of a list

  4. jayp
    Member
    Posted 6 years ago #

    So basically the problem disappeared... The list started outputing without the < em > tags. I'm sure I must have flipped some switch, but as I was changing lots and lots of things, I have no idea what did it.

    Anyway, sorry to post. I seriously looked around the documentation and searched high and low in WordPress for an hour before posting.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags