Support

Home Forums Event Espresso Premium Pagination not working

Pagination not working

Posted: August 25, 2017 at 8:12 pm


rhumphrey

August 25, 2017 at 8:12 pm

Hi guys, i am using the following shortcode [ESPRESSO_EVENTS limit=5], myunderstanding is this shoul sort the pagination out as well, but this shortcode is not even limiting my events to 5, any suggestions please.

thanks


Josh

  • Support Staff

August 26, 2017 at 9:40 am

Hi there,

You may need to add pagination to your custom template because in your other topic you asked about how to customize the event list shortcode template.

If you temporarily remove your customizations and switch over to one of the default WP themes does the pagination begin working as expected?


rhumphrey

August 27, 2017 at 12:35 am

hi, i have put back the original template and tested and it is still not working, it can be seen here

http://staging.lagaligoliveaboard.com/ryan-test/

i currently have 7 dummy events setup and using the following shortcode

[ESPRESSO_EVENTS limit=4]

and it is listed 4 events as expected, but there is no pagination for me to access the other events

please advise

thanks


Josh

  • Support Staff

August 28, 2017 at 8:06 am

Does the pagination begin displaying if you deactivate all other plugins and temporarily switch to the default WordPress theme?


rhumphrey

August 28, 2017 at 9:25 am

hi
this is a conflict with my wordpress theme and not any of the plugins, the wordpress theme is called Osmosis, company link below. This is very highly popular theme,

https://greatives.eu/themes/osmosis/

so if you can suggest anything at all that would be so appreciative. These are the last 2 things i need to complete to be able to put this site live.

again, many thanks for all your help and support.


Josh

  • Support Staff

August 28, 2017 at 9:46 am

I replied in your other topic regarding the theme conflict:

https://eventespresso.com/topic/filter-by-categories-not-working/


Josh

  • Support Staff

August 28, 2017 at 3:48 pm

It turns out the pagination on your site is working, the theme is actually hiding it from display. You can override the theme by adding this CSS to your custom stylesheet:

.ee-pagination-dv {
visibility: visible !important;
width: auto !important;
height: auto !important;
}


rhumphrey

August 28, 2017 at 11:38 pm

Hi,

Thanks with your direction on pagination, now it works fine.
I have more features going forward that need more enlightenment on your part. I would like to have a drop down showing list of all event categories, and also a drop down with event month and years, which ideally will redirect to a page containing its specific filtering where pagination will still work. How would you advise for me to do this?

Right now I can pick up event categories & dates only on the particular page i am in.

Look forward to your reply. Thanks

Pagination on page 2


Josh

  • Support Staff

August 29, 2017 at 1:30 pm

To be honest I would not know where to start building some customizations to those specifications. Is that something your developer can help you with?


rhumphrey

August 30, 2017 at 5:31 am

that is my developer asking you, he is trying to understand better how your system works.
How do you currently handle search and filter options from secting or searching, does the seach feature have the ability to go across multiple pages.

The problem i have right now is i have a drop down that looks at the that will only display the event dates and category names displayed on that page, event though i have multiple pages configured, if i change page then, it will update the list and give me the chance to filder across that page as well.

The issue is i cant search or filter across all pages that i have have events on.

This is a restriction to how EE is linking and naming the pages , but i may be wrong.

If you have an idea on how this can be handle would be much appreciated. currently you do not appear to offer any kind of search of filer options for multiple events on multiple pages.

thanks


Josh

  • Support Staff

August 30, 2017 at 10:17 am

Your developer can review the documentation for the WP Query class. That’s what Event Espresso uses to generate lists of events:

https://codex.wordpress.org/Class_Reference/WP_Query

https://developer.wordpress.org/reference/classes/wp_query/

https://www.smashingmagazine.com/2013/01/using-wp_query-wordpress/


rhumphrey

August 30, 2017 at 11:17 am

if you have a look at staging.lagalioliveabaord.com/liveaboard-pricing

you will see that the pagination is working and we have search filters on each page. it just won’t look across all pages for some reason. we had a look at the links you sent me but think we are missing something pretty simple. sorry to be a pain but this is the last thing I need to get the site live. thank you


Josh

  • Support Staff

August 30, 2017 at 12:19 pm

You likely are missing something pretty simple, but the search by itinerary and search by dates features that were added to your website are not supported by Event Espresso.


rhumphrey

August 30, 2017 at 8:17 pm

Hi Josh, this is Chilly, rhumphrey’s developer. Can I check with you.. is there a way to extend EE’s wp_query functionality, particularly this part..

$wp_query = new EventEspresso\core\domain\services\wp_queries\EventListQuery( $args );

right now I have modified loop-espresso_events.php and content-espresso_events-shortcode.php (by copying the file into child theme) which makes things how it looks now, but have no idea how to extend the event list query functionality above.. is there a file i can copy to the child theme that extends the above mentioned function?

Your advise & direction would be highly appreciated.
Thank you.


Josh

  • Support Staff

August 30, 2017 at 8:58 pm

No it doesn’t work that way. The query can be modified by using filter hooks like posts_where, posts_where_paged. Or you can build your own custom template for an event list (ditch the shortcode) and build out your own custom query that’s based off of the one in the plugin.


rhumphrey

September 1, 2017 at 2:37 am

Hi Josh, thanks again for the direction.
I’ve tried using the filter hooks on posts_where, it seems that it filters the pricing page instead of event espresso’s events.. (I’m using a [ESPRESSO_EVENTS] shortcode, not a page dedicated wholly to display events)

This post on stack overflow is very close to what we are trying to achieve stack overflow question however as before, it seems to apply to the whole page dedicated to showing list of events, and not to shortcodes (or to custom made shortcode and not using [ESPRESSO_EVENTS]).

if for say this is a standard installation (with no modification whatsoever) how would this search functionality (by categories) be handled if using [ESPRESSO_EVENTS] shortcode ?

thanks again, sorry its been a long journey of Q&A. Sure wish we can get this to completion.

– chilly –


Josh

  • Support Staff

September 1, 2017 at 12:28 pm

Hi Chilly,

The code in the stackoverflow topic can be applied when you use a custom page template. It will not apply to a shortcode.

if for say this is a standard installation (with no modification whatsoever) how would this search functionality (by categories) be handled if using [ESPRESSO_EVENTS] shortcode ?

Search by category isn’t included with the [ESPRESSO_EVENTS] shortcode, so it really does require some custom development to add it.

There is the option to use a custom page template instead of hooking into the shortcode’s query, that may be the simpler way to go. If you go with the option of hooking into the shortcode’s query, you can review the following example that shows an example of how to hook in to any event archive (shortcode or native post type archive) and modify the query:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php


rhumphrey

September 2, 2017 at 11:24 am

Hi josh

we are still having major issues with this search function, one of the issues that we are seeing is the way EE does there pagination /page/1/, /page/2/. We are unable to get the filters working through and returning the results across the pagination.

we have reviewed the links from above and still no joy. I have seen other posts as well where people are also unable to get this working.

if you have any more advice and guidance that wont just help me, but many other people that will propberaly find this feature very useful. it would be really appreciated, at this time this feature is preventing my whole project from going live.

many thanks

Ryan


rhumphrey

September 2, 2017 at 11:58 am

one thing that i have noticed with trialing and researching this problem is a lot of the other event booking platforms that have there own developed filter and search features. when they are using pagination there url strings are very similar to this.

?tribe_paged=2&tribe_event_display=list

or like this

?title=&title_1=&page=2

this conforms and actually allows the search and filter functions to work correctly.


rhumphrey

September 2, 2017 at 8:40 pm

hi. ok so last night I started to trial a 3rd party search and filter plugin this was working but when it loads my search results is displays the default list and layout that if I go to the actual category group. and not the layout that I created and linked back to your shortcode. for example if you go to staging.lagaligoliveaboard.com/ryan-test and select komodo from the first reach option and click search it loads the following page. http://staging.lagaligoliveaboard.com/event-category/komodo/

how do I tell the event-category to use the custom file and not the default layout configured in ‘RE

thanks


rhumphrey

September 3, 2017 at 7:33 am

hi,k i have been searching adn looking for plugins that will work for the search and filter functoin for EE, but keep running into nothing but problems, i see a post yesterday with you asking if they knew of any good plugins, the one i have installed is call Seach and filter and on there he talks about how you have none or some filters that are defined, but also stats that these are setup under your own tables so most search platforms use default WP settings, so im starting to loose the plot with this now, I need to be able to setup the filters for my events..

can EE please provide a solution for this. The back end of this plugin is great but seriously lacks basic settings like search and filter, that is offered by some many other products, i have invested a lot of time and money into getting the front end developed. i really need to get this site live. please advise on this.

thanks


rhumphrey

September 3, 2017 at 9:13 pm

Hi josh, i want to close this call as i have a product for search and filter, but has a couple of issues that you might be able to help out with and if so, this would be a great product add on for event espresso if we can get it to work. ill open a new post. thanks

The support post ‘Pagination not working’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  rhumphrey 2 years, 2 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.