Support

Account

Home Forums General Issues Programatically attached a CPT with relationship

Unread

Programatically attached a CPT with relationship

  • Hi,

    I have CPT#1 and CPT#2.
    CPT#1 has a ACF relationship that allows to attach it a post from CPT#2.

    I would need to do this but programatically in a function.
    As every Posts from CPT#1 has a unique date and CP#2 has also date i must compare dates and if CPT#2 date == CPT#1 date, “attach” CPT#2 to ACF relationship.

    I hope i am clear enough…
    thanks a lot

Viewing 1 post (of 1 total)

The topic ‘Programatically attached a CPT with relationship’ is closed to new replies.