Home › Forums › Ticket Products › Event Tickets Plus › EDD Tickets and shortcodes
- This topic has 6 replies, 3 voices, and was last updated 8 years, 9 months ago by Support Droid.
-
AuthorPosts
-
March 28, 2014 at 7:14 pm #124599Andy FragenModerator
I’m trying to use an EDD shortcode to display only EDD Ticket items in a page.
The shortcode is as follows.
[downloads category="ticket" columns=3]
Nothing was showing and the solution was provided on EDD forums.
I’d like to be able to limit the display to only events whose end date has not passed and/or whose end date for ticket sales has not passed.
March 28, 2014 at 9:37 pm #124611Andy FragenModeratorI think somehow refashioning the $query to pick up event end date and EDD’s meta_key might do the trick.
March 29, 2014 at 10:52 am #124716Andy FragenModeratorThere is an inherent problem with the filter code. If you use the downloads shortcode in any other page then no downloads will display.
My solution was to create a link to the appropriate category for upcoming events. The user will then click on the event to purchase using the EDD Tickets interface.
March 29, 2014 at 7:39 pm #124798Andy FragenModeratorI’m getting closer but I need to know if there’s a filter hook to only get upcoming events.
March 30, 2014 at 1:01 pm #124929Andy FragenModeratorHere’s the solution. Create a new category of the download as “Expired”. Once the event is over, add that category to the download. Here’s the shortcode.
[downloads category="ticket" exclude_category="expired" columns="3" order="ASC" orderby="post_date"]
April 11, 2014 at 3:30 pm #131536LeahMemberThanks for posting your solution Andy! Sorry we didn’t get back to you sooner.
Cheers,
LeahJuly 7, 2015 at 6:30 am #983188Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘EDD Tickets and shortcodes’ is closed to new replies.