• ced64k

    (@ced64k)


    Hi,

    I’d like to display tickets information in front-end for logged users. I can list the tickets with a simple loop and post_type = tix_attendee but when I click a name I get a 404 (for example mysite.com/tix_attendee/johndoe).

    What is the best way to achieve this ? And how can I display the post_content data (with stuff like a1:{… ) ? I’m (forever) newbie in php and a never see data like that :p

    The goal is to send a link to the attendee with a printable ticket.

    Thanks ??

    https://www.ads-software.com/plugins/camptix/

Viewing 1 replies (of 1 total)
  • Plugin Author Konstantin Kovshenin

    (@kovshenin)

    Hi there! If you’re looking to display a list of attendees for your event, you should check out the [attendees] shortcode. Note that tix_attendee items are private, which is why you’ll get 404 responses if you attempt to browse to their permalinks.

    Re a1:{… stuff, that string is a serialized array, it’s mainly used for search in CampTix, so you should never display the post_content anywhere. Instead, use the post metadata functions (get_post_meta()) to get any information you need. Again, the [attendees] shortcode has good examples which you can use in your own code.

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Best way to display tickets on front-end ?’ is closed to new replies.