Skip to content

Commit

Permalink
Merge pull request #4 from denverprophitjr/Issue_#1_Schema_Answer_int…
Browse files Browse the repository at this point in the history
…egration

fixes Issue #1 Schema Answer integration.
  • Loading branch information
inetbiz authored Oct 19, 2017
2 parents 2c78a3e + 837767d commit e5b1332
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/content-single-answer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*/
?>
<div class="<?php echo dwqa_post_class() ?>"
itemprop="suggestedAnswer<?php if ( dwqa_is_the_best_answer() ) : ?> acceptedAnswer<?php endif; ?>">
itemprop="suggestedAnswer<?php if ( dwqa_is_the_best_answer() ) : ?> acceptedAnswer<?php endif; ?>" itemscope
itemtype="http://schema.org/Answer">
<aside class="dwqa-answer-vote" data-nonce="<?php echo wp_create_nonce( '_dwqa_answer_vote_nonce' ) ?>"
data-post="<?php the_ID(); ?>">

Expand Down Expand Up @@ -37,9 +38,10 @@
<?php endif; ?>
<span class="dwqa-answer-actions"><?php dwqa_answer_button_action(); ?></span>
</div>
<span class="dwqa-answer-content"><?php the_content(); ?>
<span class="dwqa-answer-content" itemprop="text"><?php the_content(); ?>
</span>
</div>
<?php do_action( 'dwqa_after_show_content_answer', get_the_ID() ); ?>
<?php comments_template(); ?>
</div>
<!-- TODO Add parentItem schema attribute -->

0 comments on commit e5b1332

Please sign in to comment.