willcm
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Product FAQs] how to display the author name and date postedSorry Josh,
For author (i.e. person that asks the question):
<div class=”author” itemprop=”creator” itemscope itemtype=”https://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=”https://schema.org/UserComments”>question asked</span>
Forum: Plugins
In reply to: [WooCommerce Product FAQs] how to display the author name and date postedPerfect thanks Josh, just one more thing that would really help – microdata for SEO
Please can you add – https://schema.org/Blog
Forum: Plugins
In reply to: [WooCommerce Product FAQs] how to display the author name and date postedokay 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>';
Forum: Plugins
In reply to: [WooCommerce Product FAQs] how to display the author name and date postedFound 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
Forum: Fixing WordPress
In reply to: Remove brackets on category count and keep in a tagFor anyone that’s interested this solves it:
function categories_postcount_filter ($variable) { $variable = str_replace('</a> (', '<span class="post_count"> ', $variable); $variable = str_replace(')', ' </span> </a>', $variable); return $variable; } add_filter('wp_list_categories','categories_postcount_filter');