alexandertar

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Separate Blog(Posts) page when using Landing page #41811
    alexandertar
    Participant

    I managed to do that using custom template. Here’s the code:

    <?php
    /**
     * Template Name: Blog
     *
     * A custom page template for showing posts.
     *
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
     *
     * @link https://codex.wordpress.org/Template_Hierarchy
     *
     * @package Fluida
     *
     */
    
    get_header(); ?>
    
    	<div id="container" class="<?php echo fluida_get_layout_class(); ?>">
    		<main id="main" role="main" class="main">
    			<?php cryout_before_content_hook(); ?>
    			
    			<?php 
    				$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    				$the_query = new WP_Query( 'post_status=publish&orderby=date&order=desc&posts_per_page=' . get_option( 'posts_per_page' ) . '&paged=' . $paged );
    			 ?>
    
    			<?php if ( $the_query->have_posts() ) : ?>
    
    				<div id="content-masonry" <?php cryout_schema_microdata( 'blog' ); ?>>
    					<?php
    					while ( $the_query->have_posts() ) : $the_query->the_post();
    					/*
    					 * 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/content', get_post_format() );
    					endwhile;
    					?>
    				</div><!--content-masonry-->
    				<?php fluida_pagination();
    
    			// If no content, include the "No posts found" template.
    			else :
    				get_template_part( 'content/content', 'notfound' );
    			endif;
    
    			cryout_after_content_hook(); ?>
    		</main><!-- #main -->
    
    		<?php fluida_get_sidebar(); ?>
    	</div><!-- #container -->
    
    <?php get_footer(); ?>
    in reply to: Separate Blog(Posts) page when using Landing page #41803
    alexandertar
    Participant

    I don’t quite understand what do you mean. I have landing page and I’m using Featured boxes top as container of my featured posts. At the bottom of this page I can also see all my posts, but I disabled this functionality through landing page settings. What I would like to have is contents of it (essentially all posts) as a separate page.

Viewing 2 posts - 1 through 2 (of 2 total)