Support

Home Forums Event Espresso Premium Sold Out events need to display when displaying upcoming and active events.

Sold Out events need to display when displaying upcoming and active events.

Posted: October 26, 2018 at 4:34 pm

Viewing 2 reply threads


Smartycat1

October 26, 2018 at 4:34 pm

How do I fix my code in functions.php of my child theme to display the sold out events on a venue archive page? Can you help check this code and see what additional parameter(?) needs to be called?

This event:
https://www.smartycatkids.com/programs/slime-ology-lab-t-l-sandmeier-school-fall-2018/
should be displaying on the Springfield, NJ venue location, but it is not.

Let me know and thanks!

With best wishes,

Tara

*moderated*
Link to original code snippet:
https://eventespresso.com/wiki/useful-php-code-snippets/#venue-event-list

  • This topic was modified 6 years, 1 month ago by Josh. Reason: removed broken code block and replaced with a link


Josh

  • Support Staff

October 27, 2018 at 8:33 am

Hi,

You’ll replace this:
'status' => 'publish',
with this:
'status' => array('IN', array('publish', 'sold_out')),

In the future, please post large blocks of code into a PasteBin or GitHub Gist, or just link to the original code. If I wasn’t already familiar with the code in question, I would not have been able to help because the code that was posted here was reformatted by the forum software.

If you have a very small block of code, it’s OK to wrap the code in back ticks (`) like I did above.


Smartycat1

October 27, 2018 at 11:35 am

Thank you Josh,

That worked and now we can see displaying programs even if they are sold out. Thanks so much and sorry for the huge block of code. I didn’t know about the tick character for short bvlocks, and will indeed use pastbin or github in the future.

Best,
Tara

Viewing 2 reply threads

The support post ‘Sold Out events need to display when displaying upcoming and active events.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso