php - Adding #id to the_permalink() -


i cant seem figure out code this. im in functions.php of child theme.

i'm trying have image link comments section of post. have button links post itself.

the code looks like

<a href="<?php the_permalink(); #reply-title ?>"> <img src="http://trueidconference.com/wowministriesblogs/wp-content/images/joinimg.png" alt="mountain view" style="margin-left:12px;"></a> 

when try it, doesn't show up. if use <a href="#reply-title"></a> shows up, of course doesn't link post, id.

i have tried different variations using echo work.

but cant seem figure out how add #reply-title whatever current permalink is.

the reason in functions.php because needed add link bottom of every post.

try:

<a href="<?php the_permalink(); ?>#reply-title"> 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -