• Resolved Debora1976

    (@debora1976)


    Hi,

    If I change 10 to 3 in the core file, I can’t upload a image to an Event anymore and I can’t duplicate an event anymore.
    $pagesToShow = defined(‘EM_PAGES_TO_SHOW’) ? EM_PAGES_TO_SHOW : 10;

    Is there a function to override this in my own functions.php?

    Kind regards,
    Debby

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    just to confirm, can I know where is this please?

    Thread Starter Debora1976

    (@debora1976)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change MaxPages’ is closed to new replies.