JPKCom ACF Jobs

schema.php

Schema.org JobPosting generation functions

Generates structured data (JSON-LD) for job postings according to Schema.org specifications for improved search engine visibility.

Tags
since
1.0.0
link
https://schema.org/JobPosting

Table of Contents

Functions

jpkcom_acf_jobs_get_schema_job_posting()  : string
Generate Schema.org JobPosting JSON-LD for a single job post

Functions

jpkcom_acf_jobs_get_schema_job_posting()

Generate Schema.org JobPosting JSON-LD for a single job post

jpkcom_acf_jobs_get_schema_job_posting([int|null $post_id = null ]) : string

Creates a complete JobPosting schema including:

  • Basic job information (title, description, dates)
  • Employment type (FULL_TIME, PART_TIME, etc.)
  • Hiring organization details and logo
  • Job location(s) with postal addresses
  • Work type (on-site, remote/TELECOMMUTE)
  • Base salary information
  • Application contact/URL
  • Job benefits from taxonomy terms

The schema can be filtered using the 'jpkcom_acf_jobs_schema_job_posting' hook.

Parameters
$post_id : int|null = null

Optional. Post ID of the job post. Default null (uses current post).

Tags
since
1.0.0
Return values
string

JSON-LD formatted string ready for output in <script> tag, or empty string on failure.


        
On this page

Search results