Post Navigation within Category for Renew

I am using the Renew stack. I was able to add the proper code to the Child theme so that I have navigation on single post pages. Is it possible to add code so that the navigation is within category?

I know this code is on the forum, but only works for Ethos, and not Renew. Thanks for your help!

Hi there,

Please install and activate the child theme and login through FTP then edit create the directory path /wp-content/themes/x-child/framework/views/renew then add the file _content-post-header.php. Edit the file and add this code in the file:

<?php

// =============================================================================
// VIEWS/RENEW/_CONTENT-POST-HEADER.PHP
// -----------------------------------------------------------------------------
// Standard <header> output for various posts.
// =============================================================================

?>

<header class="entry-header">
  <?php if ( is_single() ) : ?>
  <?php x_entry_navigation(); ?>
  <h1 class="entry-title"><?php the_title(); ?></h1>
  <?php else : ?>
  <h2 class="entry-title">
    <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
  </h2>
  <?php endif; ?>
  <?php x_renew_entry_meta(); ?>
</header>

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.