• Resolved JChaitanyaReddy

    (@jchaitanyareddy)


    Hi

    This is a beautiful theme and I am happy with how it makes my website look.

    However, there appears to be an issue in the retrieval of posts under category.

    Example: Please check my site website https://www.chaitanyasblog.com , here click on the menu option ‘Works’, then click on menu sub item ‘Tutorials for Oracle applications’. While the first page displays the posts correctly from this category, the remaining posts under this category cannot be accessed.

    Please suggest

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter JChaitanyaReddy

    (@jchaitanyareddy)

    Resolved.

    Hi,
    I encounter the same issue with my site running with exray.
    Can you tell me how you resolved it ?
    Many thanks !

    Thread Starter JChaitanyaReddy

    (@jchaitanyareddy)

    Hi Benetel

    To resolve this you will need to update the category.php .

    Search for the section in category.php that influences the post navigation and replace it with below code: (Remember to take a backup, before making any changes)

    <!-- Pagination for older / newer post -->
                    <nav class="pagination clearfix"  id="nav-below" role="navigation">
    
                        <p class="article-nav-prev"><?php next_posts_link(__('← Older Post', 'exray-framework')); ?></p>
                        <p class="article-nav-next"><?php previous_posts_link(__('Newer Post → ', 'exray-framework')); ?></p>

    Hope this helps.

    Thread Starter JChaitanyaReddy

    (@jchaitanyareddy)

    The complete category.php in my website is as below, you can compare and modify accordingly : (Remember to take a backup, before making any changes)

    <?php get_header(); ?>
    
    <!-- Main Content -->
    <div class="container" id="main-container">
    
    	<div class="row">
    
            <?php get_exray_primary_sidebar(); ?>
    
            <?php get_exray_content_html_opening(); ?>
    
    			<?php Exray::load_breadcrumb(); ?>
    
    			<div class="content" role="main">
    				<?php if(have_posts()) : ?>
    
    						<div class="top-content">
    
    							<h5><?php single_cat_title( __('More from: ', 'exray-framework'), true ); ?></h5>
    							<hr class="content-separator">
    						</div> 
    
    					<?php while(have_posts()) : the_post(); ?>
    						<!-- The Loop of Post -->
    						<?php get_template_part('content', get_post_format()); ?>
    
    						<!-- If post format content, show post format content items -->
    
    					<?php endwhile; else :  ?>
    						<!-- If no Post Found -->
    						<h1><?php _e("No post were Found", "exray-framework") ?></h1>
    
    					<?php endif; ?>
    		 <!-- Pagination for older / newer post -->
                    <nav class="pagination clearfix"  id="nav-below" role="navigation">
    
                        <p class="article-nav-prev"><?php next_posts_link(__('← Older Post', 'exray-framework')); ?></p>
                        <p class="article-nav-next"><?php previous_posts_link(__('Newer Post → ', 'exray-framework')); ?></p>
    
                    </nav>
    			</div>
    			<!-- end content -->
    		</div>
    		<!-- end span6 main -->	
    
    		<div id="primary" class="widget-area span3 main-sidebar" role="complementary">
    
    			<?php get_sidebar('sidebar'); ?>
    
    		</div>
    		<!-- end span3 primary left-sidebar -->	
    
            <?php get_exray_secondary_sidebar(); ?>  
    
    	</div>
    	<!--End row -->
    
    </div>
    <!-- End Container  -->
    <!-- End Main Content -->
    
    <?php get_footer(); ?>

    Thanks !!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with retrieval of posts under a menu’ is closed to new replies.