Anchor navigation on Wordpress blog
November 30, 2010 9:47 AM   Subscribe

I'm working on a Wordpress blog that has a number of "featured" (not quite the right word) items on the front page - these are not grouped together and are not in any order. I want to be able to link to them on the main page using anchors.

Right now I have a nav element that links to <a name="#<?php the_time('gis'); ?> (using the timestamp as a unique ID), with the corresponding anchor at the post. When I look in the source it does have matching IDs at the nav and the post, but when I actually click the links it doesn't jump down. Any ideas why this isn't working, or a better way to do this?
posted by OverlappingElvis to Computers & Internet (3 answers total)
 
That should be an href instead of name if you want it to link.
posted by bitdamaged at 9:58 AM on November 30, 2010


Response by poster: Sorry, to clarify I have an href on the link and a name where I want it to go.
posted by OverlappingElvis at 10:00 AM on November 30, 2010


Best answer: Ah, I had an extra # in the name - this now works!
posted by OverlappingElvis at 11:18 AM on November 30, 2010


« Older Is Bette Davis Style Real?   |   Call me on my telephone... but not in song. Newer »
This thread is closed to new comments.