• Resolved Nevrion

    (@nevrion)


    I would like to know if there is any way to sync a date field between two custom post types.

    Example : Event Pod has the date 23.08.2019 in the field event_date but is also connected to the field battles as Relationship with the field event.
    Post has the field battle_date. Is it somehow possible that battle_date displays the same date as event_date?

    Alternatively the question would be whether it is possible to sort posts with FacetWP in relation to the field event_date.

    Thank you in advance

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

    (@keraweb)

    Hello @nevrion,

    Syncing metadata can be done with custom code but is outside the scope of Pods.

    You can off course set a relationship between the two objects and get the date from the related event pod.
    Example with Pod Templates: {@rel_event.event_date} where rel_event is the name of the relationship field to the Event Pod and event_date is the name of the date field in the Event Pod.

    Hope this helps!

    Thread Starter Nevrion

    (@nevrion)

    Hi, thank you for your answer. I knew this way, but unfortunately it does not help me with my project. I use FacetWP and would like to have posts sorted by event dates with FacetWP. That doesn’t seem to work this way, or I don’t understand it ??

    Plugin Author Jory Hogeveen

    (@keraweb)

    For use with FacetWP you’d have to contact their support. I’m sorry to say this is out of scope for the Pods project.

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relationship Between Date Custom Field Possible?’ is closed to new replies.