Topic: Hello I can not get pagination to work in my custom page

Home Pro Support Forums General Support Hello I can not get pagination to work in my custom page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7504
    Matti Kiviharju
    Participant

    Hello,

    I can not get pagination to work in my custom page

    $page = intval($_POST[‘page’]);
    $limit = intval($_POST[‘limit’]);

    // Calculate the offset based on the page number and limit
    $offset = ($page – 1) * $limit;

    header(“Content-Type: text/html”);

    $ics_data = r34ics_get_ics_data(array(
    ‘count’ => 6,
    ‘pagination’ => $limit,
    ‘view’ => ‘list’,
    ‘format’ => ‘j.m.Y / l’,
    ‘url’ => ”,
    ));

    Calendar it self is here: https://www.spinundergroundrecords.fi/calendar/

    #7514
    room34
    Keymaster

    The pagination only works if you’re using the actual list view template, not custom output with the PHP function like what you’re doing here.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.