If you take a look at my dev site here: https://studioddev.com/project/ladue-school-district/
We have a project showing with the scrolling navigation on the upper right of the project. This particular project category is K-12 Education.
Once you scroll though everything in that category the navigation to advance to the next item disappears as seen here: https://studioddev.com/project/rockwood-school-district-buildings/
I would like the navigation arrows to ALWAYS remain and to scroll through all the projects, not just through the ones in a particular category.
Here is what is currently in my Child Theme functions file:
// Enqueue Parent Stylesheet
// =============================================================================
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
// Additional Functions
// =============================================================================
function x_entry_navigation() {
$stack = x_get_stack();
if ( $stack == 'ethos' ) {
$left_icon = '<i class="x-icon-chevron-left" data-x-icon-s=""></i>';
$right_icon = '<i class="x-icon-chevron-right" data-x-icon-s=""></i>';
} else {
$left_icon = '<i class="x-icon-arrow-left" data-x-icon-s=""></i>';
$right_icon = '<i class="x-icon-arrow-right" data-x-icon-s=""></i>';
}
$is_ltr = ! is_rtl();
$prev_post = get_adjacent_post( true, '', true, 'portfolio-category' );
$next_post = get_adjacent_post( true, '', true, 'portfolio-category' );
$prev_icon = ( $is_ltr ) ? $left_icon : $right_icon;
$next_icon = ( $is_ltr ) ? $right_icon : $left_icon;
?>
<div class="x-nav-articles">
<?php if ( $prev_post ) : ?>
<a href="<?php echo get_permalink( $prev_post ); ?>" title="<?php __( 'Previous Post', '__x__' ); ?>" class="prev">
<?php echo $prev_icon; ?>
</a>
<?php endif; ?>
<?php if ( $next_post ) : ?>
<a href="<?php echo get_permalink( $next_post ); ?>" title="<?php __( 'Next Post', '__x__' ); ?>" class="next">
<?php echo $next_icon; ?>
</a>
<?php endif; ?>
</div>
<?php
}
Thanks