Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter James Revillini

    (@jrevillini)

    Weirder: even if I hardcode the parent id, I get all the items for the post type ‘completion.’

    New code:

    [loop type='completion' key='_wpcf_belongs_property_id' value='34167']
    [field title-link]
    [/loop]

    Thread Starter James Revillini

    (@jrevillini)

    Now I’m really confused. I was messing around with some other CCS code on the same page and suddenly, this started working. It only works if I have the second pass block.

    [pass field=id]
    [loop type=completion ]
    [if field=_wpcf_belongs_program_id value={FIELD}]
    [field title-link] [field _wpcf_belongs_program_id custom=true]
    [/if]
    [/loop]
    [pass global=_GET field=q]
      Current URL request: {FIELD}
    [/pass]

    I also tried taking out the if block and moving the query into the loop attributes and that still shows all completions regardless of program.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp types post relationships – link to children’ is closed to new replies.