-
AuthorPosts
-
June 20, 2013 at 6:08 am #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
June 20, 2013 at 7:32 am #125390No, 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>June 21, 2013 at 2:28 am #125391Hey 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
June 21, 2013 at 6:27 am #125392Hi,
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
June 21, 2013 at 7:50 am #125393Thanks Ismael
-
AuthorPosts
- The topic ‘Pagination for individual Portfolio items?’ is closed to new replies.