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>';
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 – http://schema.org/Blog
Will,
What specific micro-data were you thinking would be useful, and in what parts of this plugin?
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=”http://schema.org/Person”>
<span itemprop=”name”>Question askers name</span>
</div>
For date posted:
<span itemprop=”commentTime”>date comment asked</span>
<span itemprop=”comment” itemscope itemtype=”http://schema.org/UserComments”>question asked</span>
Hey Will,
I addressed your requests in version 2.0.
Thanks!