Thanks for your reply and code. I found applying this code in the suggested path doesn’t work unless in the functions file (child) and it has no effect in the MEC pages in either paths.
I did have to add the sections (in bold below) to make it work as it was breaking the page (hanging spinner /white screen) with just that code.
It now includes the titles in Posts which is great but I still haven’t resolved the inclusion in MEC pages and while it is excluding unwanted categories it is only pulling content from its own category (generally a sub) when I need it to include the parent and subs. So in my case, I have various parents (News, Info, Recipes) and Cakes, Soups etc are subs (of Recipes). If it can pull all subs of the parent (eg Recipes) that would work better. Thanks in advance and very much appreciate the support. You guys rock at it!
add_action(‘x_before_view_global__comments-template’, ‘add_entry_navigation’ );
add_action( ‘x_after_the_content_end’, ‘x_print_navigation’, 999 );
function x_print_navigation(){
** if(is_singular( ‘post’ )){**
** x_entry_navigation();**
** }**
}
// Entry Navigation
// =============================================================================
if ( ! function_exists( ‘x_entry_navigation’ ) ) :
function x_entry_navigation() {
$stack = x_get_stack();
if ( $stack == ‘integrity’ ) {
$left_icon = ‘’;
$right_icon = ‘’;
} else {
$left_icon = ‘’;
$right_icon = ‘’;
}
$is_ltr = ! is_rtl();
$prev_post = get_adjacent_post( true, ‘’, false );
$next_post = get_adjacent_post( true, ‘’, true );
$prev_icon = ( $is_ltr ) ? $left_icon : $right_icon;
$next_icon = ( $is_ltr ) ? $right_icon : $left_icon;
?>
<?php if ( $prev_post ) : ?>
<a href="<?php echo get_permalink( $prev_post ); ?>" title="<?php __( 'Previous Post', '__x__' ); ?>" class="prev">
<?php echo $prev_icon; ?> <?php echo get_the_title( $prev_post->ID ); ?>
</a>
<?php endif; ?>
<?php if ( $next_post ) : ?>
<a href="<?php echo get_permalink( $next_post ); ?>" title="<?php __( 'Next Post', '__x__' ); ?>" class="next">
<?php echo get_the_title( $next_post->ID ); ?> <?php echo $next_icon; ?>
</a>
<?php endif; ?>
<?php
}
**endif;**
**// =**============================================================================