Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kikmedia/e003dedea69f970cbec9aa2bf6641074 to your computer and use it in GitHub Desktop.
Save kikmedia/e003dedea69f970cbec9aa2bf6641074 to your computer and use it in GitHub Desktop.
Put job markup into MetaModels
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "JobPosting",
"title": "<? echo ($arrItem['text']['jobtitle']); ?>",
"description": "<?php echo strip_tags(html_entity_decode($arrItem['text']['description'])); ?>",
"identifier": {
"@type": "PropertyValue",
"name": <? echo ($arrItem['text']['company_name']); ?>",
"value": "<? echo ($arrItem['text']['company_name']); ?>"
},
"hiringOrganization" : {
"@type": "Organization",
"name": "<? echo ($arrItem['text']['company_name']); ?>,
"sameAs": "{{env::request}}",
"logo": "/path/to/logo.webp" },
"employmentType": "FULL_TIME",
"datePosted": "<? echo ($arrItem['text']['job_posted']); ?>",
"validThrough": "<? echo ($arrItem['text']['valid_through']); ?>",
"jobLocation": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"streetAddress": "<? echo ($arrItem['text']['company_street']); ?>",
"addressLocality": "<? echo ($arrItem['text']['company_place']); ?>",
"addressRegion": "<? echo ($arrItem['text']['company_region']); ?>",
"postalCode": "<? echo ($arrItem['text']['company_postal']); ?>",
"addressCountry": "<? echo ($arrItem['text']['company_country]); ?>"
}
},
"responsibilities": "<?php echo strip_tags(html_entity_decode($arrItem['text']['responsibilities'])); ?>",
"qualifications": "<?php echo strip_tags(html_entity_decode($arrItem['text']['qualifications'])); ?>",
"educationRequirements": "<? echo ($arrItem['text']['desirable_skills']); ?> <? echo ($arrItem['text']['education_requirements']); ?>"}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment