WordPress.org

Ready to get started?Download WordPress

Forums

CM Answers
what does the # on the answer ? (4 posts)

  1. Tomarnst
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to understand the part where is: Answered On May 6, 2013 16:42 #
    what is the #comment- link for.

    Thanks

    http://wordpress.org/extend/plugins/cm-answers/

  2. Bakuryudo
    Member
    Posted 1 year ago #

    Hi,

    The comment id seems to be missing on the link because on the notification mail for question or answer we have something like that :

    http://www.test.tst/answers/mail-1/#comment-267

    And the link leads us directly to the answer in the page.

  3. Tomarnst
    Member
    Posted 1 year ago #

    Hi,

    I'm still not sure what you mean ... the single.phtml file shows:
    <div class="cma-answer-date"><?php printf(__('Answered On %s', 'cm-answers'), $answer['date']); ?> comment_ID; ?>">#</div>

    Where is comment_ID pulled from? and where it should go to ? Or is it only for the mail.

    Thanks again.

  4. Bakuryudo
    Member
    Posted 1 year ago #

    Hi,

    I have :

    <div class="cma-answer-date"><?php printf(__('Answered On %s', 'cm-answers'), $answer['date']); ?> <a href="#comment-<?php echo $comment->comment_ID; ?>">#</a></div>

    but doesn't work so I replace it by :

    <div class="cma-answer-date"><?php printf(__('Answered On %s', 'cm-answers'), $answer['date']); ?> <a href="#comment-<?php echo $answer['id']; ?>">#</a></div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.