• Resolved Lawrence

    (@lozmatic)


    Hi,

    I have a Job Post <> Company relationship, and want to display company field values on a job post.

    The company CPT has a number of fields. For example, company_size.

    Is this the correct syntax to include in the job post template?

    [pods name=”jobs” field=”job_company.company_size”]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lozmatic

    If job_company is the field name of your relationship field then yep, this should be ok.
    However, it looks like you are trying to show this on a singular page right?
    If so, then you need to omit the name parameter as this would tell Pods to query for all jobs instead of the current object.

    Cheers, Jory

    Thread Starter Lawrence

    (@lozmatic)

    That works beautifully!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode to pull values from a related CPT’ is closed to new replies.