Title: Attendance Function
Last modified: August 24, 2016

---

# Attendance Function

 *  [tayssir.ch](https://wordpress.org/support/users/tayssirch/)
 * (@tayssirch)
 * [11 years ago](https://wordpress.org/support/topic/attendance-function-1/)
 * 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://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  [John](https://wordpress.org/support/users/jsing/)
 * (@jsing)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/attendance-function-1/#post-6113938)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/jsing/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/attendance-function-1/#post-6113938)
 * Status: not resolved