File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
?>
9
9
<div class="<?php echo dwqa_post_class () ?> "
10
- itemprop="suggestedAnswer<?php if ( dwqa_is_the_best_answer () ) : ?> acceptedAnswer<?php endif ; ?> ">
10
+ itemprop="suggestedAnswer<?php if ( dwqa_is_the_best_answer () ) : ?> acceptedAnswer<?php endif ; ?> " itemscope
11
+ itemtype="http://schema.org/Answer">
11
12
<aside class="dwqa-answer-vote" data-nonce="<?php echo wp_create_nonce ( '_dwqa_answer_vote_nonce ' ) ?> "
12
13
data-post="<?php the_ID (); ?> ">
13
14
37
38
<?php endif ; ?>
38
39
<span class="dwqa-answer-actions"><?php dwqa_answer_button_action (); ?> </span>
39
40
</div>
40
- <span class="dwqa-answer-content"><?php the_content (); ?>
41
+ <span class="dwqa-answer-content" itemprop="text" ><?php the_content (); ?>
41
42
</span>
42
43
</div>
43
44
<?php do_action ( 'dwqa_after_show_content_answer ' , get_the_ID () ); ?>
44
45
<?php comments_template (); ?>
45
46
</div>
47
+ <!-- TODO Add parentItem schema attribute -->
You can’t perform that action at this time.
0 commit comments