php - Adding a hyperlink to every comment -


here image of comment format: http://oi40.tinypic.com/8w07jt.jpg

the hyperlink each individual comment date , time url in format of, example: /nottingham/#comment-184

after going through comment templates found these 2 functions following,

get_comments_link : retrieves link current post comments

and

comments_link: displays link current post comments

the problem have no idea include these functions creates hyperlink every comment within every comment. once link has been created i'd assign div can format in bottom right corner of each comment.

my final goal manipulate link rather comment link automatically work in facebook.com/sharer.php feel can myself once figure out previous part. share on facebook button, have found no plugins yet , thought describing hyperlink easier way explain i'm trying do.

elsewhere i've been told following: not sure how implement this...

in functions.php i'd add 'get_comments_link' filter return desired link, including tag need. note filter, not function. there function same name, it's part of wordpress itself. use filter add div existing link. style new div position want it. notice photoria theme repositions reply link, coded @ bottom displayed @ top. in same way, new coded @ top displayed @ bottom. see add_filter in codex. add new div $link before returning it. new div need class attribute can work in css make way want.

i hope i've made question clear, please ask if haven't. in advance!

you need edit comment template in wordpress theme.

default located in /comments.php

some more informations found here : http://codex.wordpress.org/function_reference/comments_template


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -