hi,
just to confirm, can I know where is this please?
Hi,
In the events page (CONTENTS).
And the function is in em-functions.php
Have you tried adding it on the wp-config.php and do something like: defined(“EM_PAGES_TO_SHOW”, 3)? Could We perhaps know what is it that you’re trying to do?
The variable $pagesToShow that you are trying to alter is used for pagination in the Admin, not the front-end.
Seeing you are rather unclear, but do use “contents”. “CONTENTS” is not used by EM in the admin, just to process the front-end output.
The default settings in the EM Settings do not have a max page setting, but the shortcode [events_list] does… Sort of…
So in your EM Settings, select “[No Events Page]” as the default Events Page. In the Event List setting (below on the same page), set the maximum of events you want to show PER PAGE.
Then in the WP Post Content, replace “CONTENTS” with [events_list scope="future" pagination="1" limit="X"]
Where X is the number of pages you wish to show x the number of events per page (as set in the Events List settings).
So, if you want to show 3 page with each 10 events, you should set “10” as the limit and use limit=”30″ in the shortcode.