-
AuthorPosts
-
April 28, 2014 at 12:43 am #256886
Hi,
I have an issue with the arrow slider of the pages. The lateral arrow slide the entries by date of publication. How can I make them slide by category?
Thanks for the help!
April 28, 2014 at 12:03 pm #257013Hey MeryVi!
Thank you for using the theme.
Please add this on functions.php to sort the next or previous page navigation by category:
function avf_same_category_navigation($settings) { if($settings['taxonomy'] == 'portfolio_entries') $settings['same_category'] = true; return $settings; } add_filter('avia_post_nav_settings','avf_same_category_navigation', 10);
The downside is, it will only filter the current category.
Cheers!
IsmaelApril 28, 2014 at 12:12 pm #257020This reply has been marked as private.April 28, 2014 at 12:57 pm #257035This reply has been marked as private.April 28, 2014 at 2:22 pm #257061Hi!
Please remove the code Ismael posted from functions.php file via FTP and add it right below following line
'bitcoin' => array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'), ));
I tried and there is no syntax errors
Cheers!
YigitApril 28, 2014 at 4:11 pm #257146This reply has been marked as private.April 28, 2014 at 4:51 pm #257156Hi!
Unfortunately only way is editing file via FTP. I do not know your agreement but you should have all login credentials needed for FTP database etc.
Best regards,
YigitApril 28, 2014 at 4:55 pm #257159Ok thank you very much for the help!
BestApril 28, 2014 at 4:58 pm #257161April 29, 2014 at 6:30 pm #257780Hey Yigit, I can’t find the line in functions.php
‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),
));after which you suggested to insert Ismael’ code. Can I insert the whole code at the end of the functions.php?
‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),
));function avf_same_category_navigation($settings) {
if($settings[‘taxonomy’] == ‘portfolio_entries’) $settings[‘same_category’] = true;
return $settings;
}
add_filter(‘avia_post_nav_settings’,’avf_same_category_navigation’, 10);Thanks for the help!
- This reply was modified 10 years, 7 months ago by MeryVi.
April 30, 2014 at 4:33 am #258099Hey!
Thank you for the update.
Yes, you can insert the code at the very bottom of functions.php. It should work just fine.
Cheers!
IsmaelMay 1, 2014 at 3:44 pm #258910Sorry guys but the code for the navigation still gives an error I really don’t know why!
- This reply was modified 10 years, 7 months ago by MeryVi.
May 4, 2014 at 5:46 pm #259978Hi!
Make sure you use the code Ismael posted here: https://kriesi.at/support/topic/page-arrow-slider-order/#post-257013 and make sure that the quotes use this symbol
'
and not
‘
Regards,
PeterMay 4, 2014 at 5:47 pm #259979Hi!
If the code still doesn’t work please ask the freelancer to implement it for you – maybe he modified the files somehow and you must take care of some other code parts too.
Cheers!
Peter -
AuthorPosts
- You must be logged in to reply to this topic.