Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter willcm

    (@willcm)

    Found the issue for the author name, now how do I add the date?

    line 160 loop-faqs.php reads:

    echo '<p class="faq-author">— ' . get_post_meta( $faq_id, '_woo_faq_author', true ) . '</p>';

    This should be:

    echo '<p class="faq-author">— ' . get_post_meta( $faq_id, '_woo_faq_author_name', true ) . '</p>';

    Notice _woo_faq_author_name instead of _woo_faq_author

    Thread Starter willcm

    (@willcm)

    okay solved both ?? (is there a way to do this so I dont have to “hack” the original plugin files?

    line 160 loop-faqs.php

    echo '<p><span class="faq-author">Asked by ' . get_post_meta( $faq_id, '_woo_faq_author_name', true ) . ' on </span>';
    
    echo '<span>' . comment_date() . '</span></p>';
    Plugin Author Josh Levinson

    (@joshlevinson)

    Hi there Will!

    I will include your feature requests in an update soon.

    For the comment_date function – that will actually display the date of the ANSWER, not the question.

    Look out for an update soon to have these features included.

    Thread Starter willcm

    (@willcm)

    Perfect thanks Josh, just one more thing that would really help – microdata for SEO

    Please can you add – https://schema.org/Blog

    Plugin Author Josh Levinson

    (@joshlevinson)

    Will,

    What specific micro-data were you thinking would be useful, and in what parts of this plugin?

    Plugin Author Josh Levinson

    (@joshlevinson)

    Will,

    Any updates on this? I’m holding off an the next release until I hear some feedback on how microdata could enhance the SEO of this plugin.

    Thread Starter willcm

    (@willcm)

    Sorry Josh,

    For author (i.e. person that asks the question):
    <div class=”author” itemprop=”creator” itemscope itemtype=”https://schema.org/Person”&gt;
    <span itemprop=”name”>Question askers name</span>
    </div>

    For date posted:
    <span itemprop=”commentTime”>date comment asked</span>

    <span itemprop=”comment” itemscope itemtype=”https://schema.org/UserComments”>question asked</span>

    Plugin Author Josh Levinson

    (@joshlevinson)

    Hey Will,

    I addressed your requests in version 2.0.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to display the author name and date posted’ is closed to new replies.