Okay
  Public Ticket #3700847
Organizers Page
Open

Comments

  •  2
    rosewich started the conversation

    Is there a way to customize the number of items shown per page (currently fixed to 10 items)?

  •  857
    Zhivko replied

    Hi,

    I am afraid only via a hook.

    Hook example:

    // Increase events per page to 100 for the admin panel
    add_action('admin_footer', function () {
    ?>
        <script>
            window.stecFilterManageEventsPerPage = 100;
        </script>
    <?php
    });
    

    This code is usually placed in the child-theme functions.php file but you can place it as a PHP snippet as well if you are using some snippets plugin.


    Stachethemes Developer

  •  2
    rosewich replied

    Thanks. I guess this increases the number of events shown per page. 

    What I was looking for:

    Increase the number of “organizers” shown on the organizer page. 

    Is there a similar hook?

  •  857
    Zhivko replied

    No, I am afraid there is no filter for Organizers. I will make sure to include it in this week's update.

    It will look like this:

    // Increase events per page to 100 for the admin panel
    add_action('admin_footer', function () {
    ?>
        <script>
            window.stecFilterManageTermsPerPage = 100;
        </script>
    <?php
    });
    

    And it will affect calendars, locations, guests, organizers and categories


    Stachethemes Developer

  •  2
    rosewich replied

    Dear Zhivko,

    many thanks so far. I'm afraid, my question was maybe a bit misleading. What we are actually looking for, is a way to increase the number of organizers shown on the frontend organizers page, for example: https://events.imlicht.ch/referentinnen/

    I'm hoping you could add a filter there too?

  •  857
    Zhivko replied

    Sure, I will make sure to add filter there.


    Stachethemes Developer

  •  857
    Zhivko replied

    The filter name will be 

    stecFilterListOrganizersPerPage

    and the default per page value will be increased to 20


    Stachethemes Developer

  •  2
    rosewich replied

    Ok, thanks. I got this to work with this code in functions.php.

    // Increase organizers per page to 100 
    add_action('wp_footer', function () {
    ?>
        <script>
            window.stecFilterListOrganizersPerPage = 100;
        </script>
    <?php
    });