Hallo
ich habe zwei verschiedene Blogs mit jeweils einer bestimmten Kategorie, obwohl ich folgende Einstellung vorgenommen habe
Zeige Einträge aus einer benutzerdefinierten Taxonomie, springt nach dem Durchklicken “Kategorie 1” von rechts Ende oder Links Anfang weiter nach “Kategorie 2”.
Wie kann ich das verhindern, was muss ich wo einstellen?
Danke für die Hilfe.
Grüße Guido
there are different settings that can be done by that filter: avf_post_nav_settings
See: https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Layout/avf_post_nav_settings.php
this is the common setting to get what you want in child-theme functions.php:
function enfold_customization_postnav($settings){
$settings['skip_output'] = false;
$settings['same_category'] = true;
return $settings;
}
add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
but you can have different settings for post or portfolio – you can exclude categories etc. pp
f.e.:
function enfold_customization_postnav($settings){
$settings['skip_output'] = false;
$settings['same_category'] = true;
$settings['is_fullwidth'] = false;
// exclude "category-id" 64 from post-navigation
if('portfolio' == $settings['type']){
$settings['excluded_terms'] = '64';
}
// posts will not have post-navigation
if('post' == $settings['type'] ){
$settings['skip_output'] = true;
}
return $settings;
}
add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
Hi,
Thank you for the inquiry.
@Highlander-2013: Please try the suggestion above, just let us know if you need more help.
Thanks @Guenni007!
Best regards,
Ismael
Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike