Hi
I really like left right arrows with short description which allow jump to next post.
Please find screenshot here
Can I add that viewer to custom post type?
Thank you in advanced
Krzysztof
Hey Krzysztof,
If you have posts within the same categories, that feature should automatically be applied by default. Please provide admin info so that I may look into this further if it is not.
Best regards,
Jordan Shannon
Hi Jordan
Thank you for quick answer
I create two item in custom post and add it into one category and this future doesn’t work.
Please find admin access in private
BR
Krzysztof
Hi,
Please add following code to functions.php file in Appearance > Editor
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
if(is_singular('trenerzy')) {
$settings['taxonomy'] = 'trenerzy';
$settings['is_fullwidth'] = false;
}
$settings['same_category'] = true;
return $settings;
}
Best regards,
Yigit
Hi
Thank you.
I’ve checked and it is doesn’t work
Becase singular is trener I was trying also to change for that code
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
function avia_post_nav_settings_mod($settings)
{
if(is_singular('trener')) {
$settings['taxonomy'] = 'trenerzy';
$settings['is_fullwidth'] = false;
}
$settings['same_category'] = true;
return $settings;
}
but it is also doesn’t work
Can you check again?
Krzysztof
Hey!
Please add new taxonomy and replace it in following line
$settings['taxonomy'] = 'trenerzy';
Best regards,
Yigit
Hi
I have that taxonomy all items are added to that taxonomy but still nothing is changed