Skip to content

Instantly share code, notes, and snippets.

@HoussenMoshine
Created May 6, 2017 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoussenMoshine/16f64e3dc9173851aa37cb40189cd80f to your computer and use it in GitHub Desktop.
Save HoussenMoshine/16f64e3dc9173851aa37cb40189cd80f to your computer and use it in GitHub Desktop.
Code de Schema.org pour les champs personnalisés de Wordpress (le champ s'appelle schema)
<!-- Code Custom pour Schema.org -->
<?php
$schema = get_post_meta(get_the_ID(), 'schema', true);
if(!empty($schema)) {
echo $schema;
}
?>
@HoussenMoshine
Copy link
Author

Vous pouvez trouver un guide complet de Schema.org avec des exemples et conseils sur : https://housseniawriting.com/schema-org/guide-schema-org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment