Posted: February 6, 2017 at 11:40 pm
|
In EE3 I have used [EVENT_LIST limit=1 show_expired=true order_by=date(start_date) sort=DESC] now i need to write it like this: I get only the expired with pagination but the limit is ignored. what can be done to fix that? |
Does this work?
|
|
|
same thing. i get 1 event but still get paging for all the rest |
Hi there, Limit is not being ignored if you are getting a single event with pagination for the rest of your events, that’s expected behavior when using limit on the ESPRESSO_EVENTS event list shortcode. So you only want to display a single event (event if expired) with no pagination? |
|
|
Yes, exactly now beside that, i need to change the design to be the same as i had with the EE3 lite what is the best practice for that so with next updates it won’t delete the design? |
I can’t see an option that will allow for that, but I’ll check in with the developers to see if I’m missing something. EE3 and EE4 use completely different methods to output the details, EE3 had its own set of templates it loaded for the output, EE4 uses your sites theme and injuects the details into the_content, so getting EE4 to display in the same way as EE3 is not simple. What is it you want to change? |
|
|
I’m waiting for your respond, my boss and client is on my neck for solution. the website |
Hi there,
The best practice is you put the design into your WordPress theme. You’ll see some example templates in the EE4 core plugin in the /public folder. Here are some links to documentation that has more information about how to get started with theming for Event Espresso 4: https://eventespresso.com/wiki/ee4-custom-post-types/#single_event_template |
|
|
Hi, What with a solution for our problem with shortcode? |
One option is to hide the pagination using CSS, to hide that specific section you can use: .home .post-207 + .ee-pagination-dv { display: none; } ANother option is to not use the ESPRESSO_EVENTS shortcode for that output and query for the events yourself, generating your own output which doesn’t use the above shortcode. Here is an example of doing just that: https://gist.github.com/joshfeck/6e33532c37a123bbf532 However you’ll need to alter the where conditions to suit your use case. |
|
|
I have tried to use the git code you supplied. |
Hi there, I answered your question in your other topic: https://eventespresso.com/topic/simple-ee4-event-list-query-and-display/#post-232905 |
|
The support post ‘Shortcode not working after EE3 to EE4 migrating’ 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.