Support

Home Forums Event Espresso Premium HOW TO ORDER THE CONTENT from eventexpresso

HOW TO ORDER THE CONTENT from eventexpresso

Posted: October 20, 2014 at 9:14 pm


Ferdie Santiago

October 20, 2014 at 9:14 pm

Hi,

I have a certain question, in event expresso i used this query to fetch all events and i used to have the_content() function in wordpress to display the details of the event. BUT
id like to have a minor changes on the content:

display the event description first before displaying the ticket availabilty.
i just like to know if this is possible, and if yes then how can i fetch the post for me to arrange content of the event.

i would really appreciate any help and prompt message.
PLEASE THANKS.

EVENT DESCRIPTION = first display
TICKET AVAILABILITY = second display
BUTTON

<?php
$atts = array(
‘title’ => NULL,
‘limit’ => 100,
‘css_class’ => NULL,
‘show_expired’ => FALSE,
‘month’ => NULL,
‘category_slug’ => NULL,
‘order_by’ => ‘start_date’,
‘sort’ => ‘ASC’
);
// run the query
global $wp_query;
$wp_query = new EE_Event_List_Query( $atts );

if (have_posts()) : while (have_posts()) : the_post();

the_content();

endwhile;
endif;
?>


Lorenzo Orlando Caum

  • Support Staff

October 20, 2014 at 9:48 pm

Hi Affandi,

The name of our software is Event Espresso. There is an “s” instead of an x.

Try adding this code snippet to your child theme’s functions.php file or a site specific plugin:

https://gist.github.com/lorenzocaum/a33405557a2a065779ea

The order will be event image, event description, ticket selector, datetime, and so forth.

Let us know if this helps!


Lorenzo


Ferdie Santiago

October 21, 2014 at 3:27 am

thank you very much you have solved my problem.
btw regarding on the software, it just a typographical error sorry 🙂

case closed!

The support post ‘HOW TO ORDER THE CONTENT from eventexpresso’ 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