我已经阅读了这篇文章:https://developers.google.com/search/docs/data-types/job-posting#JobPosting-definition并找到了我需要添加到职位发布所需属性的位置。我不确定如何实际做到这一点。我看到提到它是用JSON完成的,但我不熟悉它。有没有一种简单的方法可以使用html将这些属性添加到工作岗位,例如哪个会出现在Wordpress网站的博客文章中?
有没有一种简单的方法可以使用html将这些属性添加到工作岗位,例如哪个会出现在Wordpress网站的博客文章中?
没有。
HTML是一种文档格式,它不适合提供具有此类问题所需结构级别的数据。
我看到提到它是用JSON完成的,但我不熟悉它。
这就是您要使用的API期望提供数据的格式(它也是绝大多数Web服务使用的格式)。你需要熟悉它。
阅读the website和the specification,找到一个JSON编码库,用于连接到Job Posting API(例如JSON object for JavaScript)的任何编程语言。
感谢您对Quentin的回应。不幸的是客户端需要一些东西,所以我没有时间学习JSON。然而我确实找到了一个可以解决问题的WP插件。它叫做WP Job Management:https://wordpress.org/plugins/wp-job-manager/。
在这里,我为我的一个客户实施。
他们正在运行门户网站。所以我使用json ld完成了工作发布模式。我在页面中使用的代码在哪里
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "JobPosting",
"baseSalary": "100000",
"jobBenefits": "Medical, Life, Dental",
"datePosted": "2011-10-31",
"description": "Description: ABC Company Inc. seeks a full-time mid-level software engineer to develop in-house tools.",
"educationRequirements": "Bachelor's Degree in Computer Science, Information Systems or related fields of study.",
"employmentType": "Full-time",
"experienceRequirements": "Minumum 3 years experience as a software engineer",
"incentiveCompensation": "Performance-based annual bonus plan, project-completion bonuses",
"industry": "Computer Software",
"jobLocation": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Kirkland",
"addressRegion": "WA"
}
},
"occupationalCategory": "15-1132.00 Software Developers, Application",
"qualifications": "Ability to work in a team environment with members of varying skill levels. Highly motivated. Learns quickly.",
"responsibilities": "Design and write specifications for tools for in-house customers Build tools according to specifications",
"salaryCurrency": "USD",
"skills": "Web application development using Java/J2EE Web application development using Python or familiarity with dynamic programming languages",
"specialCommitments": "VeteranCommit",
"title": "Software Engineer",
"workHours": "40 hours per week"
}
</script>
这是实施好方案的网站之一参考:https://allgovernmentjobs.in/。在那里你可以找到工作发布架构。
你可以检查这个网址:https://allgovernmentjobs.in/latest-government-jobs进入谷歌结构数据测试工具:https://search.google.com/structured-data/testing-tool/u/0/并获取网址。您将了解如何实施代码,这有助于在Google搜索中获得更好的结果