WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a big one page wordpress site and a menu created from wordpress admin pages panel. I added everywhere in my main page such links like <A NAME="gohere"> and similar. Now I need to add href's to the page menu name's like <a href="#gohere"> Actually I do not know is it possible to do this from the wordpress admin page's menu or maybe anybody know where these pages are stored so that I could add the links manually in the file's. Thanks!

Tried plugin "Page Links to" and added something like <A NAME="gohere"> as a link in where, but unfortunately plugin do not understand this,


share|improve this question
up vote 0 down vote accepted

well you've to change code in loop for example currently now loop is like

<?php if(have_post) : while(yourquery): the_post : <div>the_title</div><div>the_content</div> endwhile; endif;

Then Just Add this line also

<?php if(have_post) : while(yourquery): the_post <a name="$i"><div>the_title</div><div>the_content</div></a> endwhile; endif;
share|improve this answer
Hello there! I have exactly the same problem... In which file should I change this code? – Pitto Mar 14 '12 at 15:47

Try using the "Custom Links" meta box, to add any arbitrary link as a menu item. You'll need to add the full-path URL, but that shouldn't be a problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.