• Hello,

    Nice effective theme, just 1 query. I have set up the magazine homepage layout but want to show all my posts in chronological order (as in grid posts with pagination) after the Magazine 2 widget area.. how to achieve this?

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author ThemezHut

    (@pubudu-malalasekara)

    Hi @usmanansari,

    Since the posts listing haven’t implemented in the magazine page template we have to implement it. The best way to do it is by creating a child theme and creating a custom page template for this.

    I will insert the code for the custom page template here. However if you want the full child theme or help please contact me via email. – themezhut.com/contact/

    <?php
    /**
     * Template Name: Custom Magazine Template
     *
     * Displays the Business Template of the theme.
     *
     * @package awaken
     */
    
    get_header(); ?>
    	
    	<div class="amt-area">
    	<?php 
    		if( is_active_sidebar( 'magazine-1' ) ) {
    			// Calling the business page left section sidebar if it exists.
    			if ( !dynamic_sidebar( 'magazine-1' ) ):
    
    			endif;
    		} 
    	?>
    	</div><!-- .amt-area -->		
    	<div class="row">
            <?php is_rtl() ? $rtl = 'awaken-rtl' : $rtl = ''; ?>
            <div class="col-xs-12 col-sm-12 col-md-8 <?php echo $rtl ?>">
    			<?php 
    				if( is_active_sidebar( 'magazine-2' ) ) {
    					// Calling the business page left section sidebar if it exists.
    					if ( !dynamic_sidebar( 'magazine-2' ) ):
    						
    					endif;
    				} 
    			?>			
    
    			<div id="primary" class="content-area">
    				<main id="main" class="site-main" role="main">
    
    				<?php 
    					$temp = $wp_query; $wp_query= null;
    					$wp_query = new WP_Query(); $wp_query->query('showposts=10' . '&paged='.$paged);
    				?>
    
    				<?php if ( $wp_query->have_posts() ) : ?>
    
    					<?php /* Start the Loop */ 
    						$counter = 0;
    					?>
    					<div class="row">
    					<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
    
    						<?php
    							/* Include the Post-Format-specific template for the content.
    							 * If you want to override this in a child theme, then include a file
    							 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    							 */
    							get_template_part( 'content' );
    						?>
    					
    					<?php 
    						$counter++;
    						if ($counter % 2 == 0) {
    							echo '</div><div class="row">';
    					 	} 
    					?>
    					<?php endwhile; ?>
    
    					<div class="col-xs-12 col-sm-12 col-md-12">
    						<?php awaken_pro_paging_nav(); ?>
    					</div>
    				</div><!-- .row -->
    
    				<?php else : ?>
    
    					<?php get_template_part( 'content', 'none' ); ?>
    
    				<?php endif; ?>
    
    				<?php wp_reset_postdata(); ?>
    
    				</main><!-- #main -->
    			</div><!-- #primary -->
    
    		</div><!-- .bootstrap-cols -->
    
    		<div class="col-xs-12 col-sm-6 col-md-4">
    			<?php get_sidebar(); ?>
    		</div><!-- .bootstrap-cols -->		
    	</div><!-- .row -->
    
    <?php get_footer(); ?>
    Thread Starter usmanansari

    (@usmanansari)

    Thanks for the message, there is another problem though. The author profile at the end of the posts isn’t showing up in the Awaken theme, is there any way to enable?

    Thanks

    Thread Starter usmanansari

    (@usmanansari)

    how to show ‘Author Box’ at the end of each post? previous theme had it, Awaken isnt displaying the author box

    Theme Author ThemezHut

    (@pubudu-malalasekara)

    Hi @usmanansari,

    If you are using Awaken Pro please go to Dashboard > Appearance > Customize > Post/Page settings and Mark the “Display author box in single post articles” check box.

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘posts in chronoligical order’ is closed to new replies.