Tagged: portfolio navigation
Hi, I have the updated theme, and I am also using Advanced Post Type Order. But since I’ve updated both the avia prev/next navigation work in the reverse order (right arrow goes to the previous project, and the left arrow goes to the next project). I’ve looked through the forums and can’t find an answer.
How can I correct this?
the site password is: so
Hi altr!
In WordPress dashboard, please go to Appearance > Editor and open functions-enfold.php file and find
{
$entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
$entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
}
else
{
$entries['prev'] = get_previous_post($settings['same_category']);
$entries['next'] = get_next_post($settings['same_category']);
}
and replace it with
{
$entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
$entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
}
else
{
$entries['next'] = get_previous_post($settings['same_category']);
$entries['prev'] = get_next_post($settings['same_category']);
}
Best regards,
Yigit
That worked! Thank you ;)