Tagged: portfolio entry
Hello once again,
I’m displaying discography using portfolio items, when I go into page http://www.kremeratabaltica.com/home/discography everything seems to be fine because I set only category “discography” to be displayed, but if i go on a certain entry (which is the first album – Happy birthday), an arrow is displayed to go to previous entry (on the left of the page) and it goes to default entry which is actually set in categories “CSS, HTML, PSD”.
Why is it displayed and what should I do, so that it wouldn’t be seen? (I’d like to keep that default entry as an example for future ideas).
Thanks,
Renata
Labas Renata! :)
Please add following code to Functions.php file in Appearance > Editor
function category_specific_post_nav($settings)
{
if($settings['taxonomy'] == 'portfolio_entries') $settings['same_category'] = true;
return $settings;
}
add_filter('avia_post_nav_settings','category_specific_post_nav', 10);
Regards,
Yigit
Aciu, Yigit! :) Helpful as always!
It seem that I should add such kind of thing after each theme update, right?
Gero vakaro ir iki :)
Renata
Nera uz ka Renata! :)
Yes, but you can use child theme to avoid that. Please see – http://kriesi.at/documentation/enfold/using-a-child-theme/
iki! :)
Yigit