• I Created :
    Post Type: Contact
    Taxonomy1: Groups (Deans, Assistant Deans, DIrectors, Students…)
    Metaboxes :
    – Name
    – Position
    – Address

    Post Type: Events

    i link Contact with Events using post2post
    and selecting which Contact are invited to Event

    how can i add checkbox (or dropdown).. with this option:
    Attend/Not Attending

    please note that there are lot of event,
    and each contact may be invited to many event

    so the relation should be between
    Post type Event – Post Type COntact – Attendance Checkbox

    https://www.ads-software.com/plugins/posts-to-posts/

Viewing 1 replies (of 1 total)
  • Are you still trying to do this? If so are you attempting to mark their attendance at the event like a check in desk?

    If you are I would create a custom field for the event to store the post id of each Contact that attends in a list.

    On the single-event.php page i would loop through all the Contact that are connected and display their name and a button (with the value being their id) to mark their attendance.

    Link the button to an ajax function to add/remove their id to the field for that event. It could also add the Event post id to the Contact in a custom field.

    Then you could check the id in question against the string stored in the custom field and easily determine if someone attended an event or query the attendees of an event easily since you already have their post ids stored.

Viewing 1 replies (of 1 total)
  • The topic ‘Attendance Function’ is closed to new replies.