Last active
November 18, 2017 04:14
-
-
Save HoussenMoshine/f6e87856187ea293cd394ed760b71bcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context":"http://schema.org", | |
"@type":"DiscussionForumPosting", | |
"@id":"<?php bbp_reply_id(); ?>", | |
"datePublished":"<?php the_time('c'); ?>", | |
"image":"https://s3-eu-west-1.amazonaws.com/s3.housseniawriting.com/wp-content/uploads/2017/11/17091829/forum-houssenia-writing-1.jpg", | |
"headline":"<?php bbp_topic_title(); ?>", | |
"articleSection":"<?php bbp_forum_title(); ?>", | |
"articleBody":"<?php echo wp_strip_all_tags( get_the_content() ); ?>", | |
"author": { | |
"@type": "Person", | |
"name": "<?php the_author(); ?>" | |
}, | |
"interactionStatistic": { | |
"@type": "InteractionCounter", | |
"interactionType": "http://schema.org/ReplyAction", | |
"userInteractionCount": "<?php bbp_topic_reply_count() ?>" | |
} | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Un exemple de code pour utiliser la balise DiscussionForumPosting de Schema.org pour ajouter des données structurées à un forum.
https://housseniawriting.com/schema-org/guide-schema-org/#Utiliser_Schemaorg_sur_un_forum_avec_la_balise_DiscussionForumPosting