Forums
Home / Fixing WordPress / Adding Post a Comment in Index Page
(@djixas)
16 years, 3 months ago
Hello,
I am trying to add “Post a Comment” into my home page but have some problems. Here’s the code which I am using:
<a class="postaco" href="<?php the_permalink() ?>#post-comment" title="Post a Comment">Post a Comment</a>
However, this leads link to domain.com/postname/#post-comment instead of domain.com/postname#post-comment
How can I fix this issue?
Also, I am trying to format # of comments link by using this code:
<p style="float:left;" class="postmetadata"><?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('<a href="#comments" class="aco" title="Number of Comments">No Comments</a>...
My questiion here: how do I insert post url into a href?
15 years, 9 months ago
Try
<a>#postcomment"><?php echo get_caption('comment'); ?></a> <a href="http://anberlin.ru/">Best Rock In the World</a>
(@djixas)
16 years, 3 months ago
Hello,
I am trying to add “Post a Comment” into my home page but have some problems. Here’s the code which I am using:
<a class="postaco" href="<?php the_permalink() ?>#post-comment" title="Post a Comment">Post a Comment</a>
However, this leads link to domain.com/postname/#post-comment instead of domain.com/postname#post-comment
How can I fix this issue?
Also, I am trying to format # of comments link by using this code:
My questiion here: how do I insert post url into a href?