Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24989

    I showcase films. Some are individual films, some are series episodes. Would it be possible to paginate them?

    Here is a link where I put them altogether and it seems messy:

    http://nedimhazar.com/filmler/hayatimizin-fon-muzigi

    Whereas this one is better (it’s an individual film):

    http://nedimhazar.com/filmler/yakin-ada-uzak-ada-burgazada

    So my question is: put the first part of the episode and paginate the others of the same series… is that possible?

    Best,

    Nedim

    #125390

    No, this is not possible without creating the pagination manually. However you can create a link list manually and use the standard enfold pagination styling for the links:

    <div class="pagination">
    <span class="current">Episode 1</span>
    <a href="http://nedimhazar.com/filmler/episode2" class="inactive">Episode 2</a>
    <a href="http://nedimhazar.com/filmler/episode3" class="inactive">Episode 3</a>
    </div>

    #125391

    Hey that’s a great idea Dude, thanks very much!

    But then, there’s a new problem which arises with that: I would have to create a fake “All” category for the filterable grid and not include the other episodes of the same show. So my question now would be:

    How can I omit the real “All” choice in the filters of the portfolio grid and let the others show up?

    Best, Nedim

    #125392

    Hi,

    Edit config-templatebuilderavia-shortcodes portfolio.php, find this code

    $output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework' )."</a>";
    foreach($categories as $category)
    {
    if(in_array($category->term_id, $current_page_cats, true))
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";
    $output .= "<a href='#' data-filter='".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    }
    }

    Replace it with:

    //$output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework' )."</a>";
    foreach($categories as $category)
    {
    if(in_array($category->term_id, $current_page_cats, true))
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";
    $output .= "<a href='#' data-filter='".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    }
    }

    Regards,

    Ismael

    #125393

    Thanks Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Pagination for individual Portfolio items?’ is closed to new replies.