How to modify a php hyperlink?

kaizen_66

New member
trying to edit (in php) a hyperlink (this is on a Wordpress blog)

<a class="readmore" href="<?php the_permalink(); ?>"><span><?php _e('Leave Comment','OnTheGo'); ?></span></a>

right now, it references the_permalink, which is fine - however, I want it to add to the end of the_permalink #comments (a div tag already set up).

I've tried adding the "#comments" inside the link tag a bunch of different ways, but I can't figure out the correct syntax. Any idea? Thanks!
 
Back
Top