Forums
Forums / Fixing WordPress / Links aren’t links
(@bmccullo)
20 years, 9 months ago
I’m trying to create a menu of links using
<div id="nav"><ul><?php wp_get_links(2); ?></ul></div>
it outputs the list of links from category ID #2 fine, but the link url is surrounded by single quotations (‘), not double (“)…
<li><a href='http://chordaltheory.net/photos'>Photos</a></li>
As a result (I think), the link element within each <li> isn’t actually a link. Meaning it isn’t clickable as a link. Any thoughts?
<li>
(@kafkaesqui)
Using single quotes for attribute values is valid XHTML, and I have no problem following links on my blog because of them.
Are you unable to click through on these links? If so, what browser are you using?
Hmm, yeah I wasn’t sure if single quotes was the problem or not. I’m using Firefox 1.0.6 and I’m unable to click through the links.
(@pcmt)
Your problem is somewhere in your stylesheet.
I removed some of the float:lefts in your #nav styling and your links worked fine in Firefox.
The topic ‘Links aren’t links’ is closed to new replies.