Separate Blog(Posts) page when using Landing page

Forums ยป WordPress ยป Fluida ยป How To

  • Author
    Posts
  • #41795

    Hi
    I’m using Fluida theme landing page functionality and I would like to display only featured posts on it. To display all available posts I would like to have a separate page accessible using “Blog” link from my menu. How do I do that?
    Thank you.

    #41801
    Zed
    Cryout Creations mastermind

    If you’re using the blocks to display your featured posts, you can assign an empty or short static page on the homepage (and use it to display a short text below the second blocks area) and assign a different page to be the blog from WordPress’ options.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #41803

    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.

    #41811

    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(); ?>
    #42391

    Btw just to let you know I figured it out… I remembered when we first started with static page we used a blank home page ๐Ÿ™‚

    So went in and made a blank home page and then into the WP Reading settings and set it to static page as home… and blog to my blog page and hey presto it worked!

    I think we had it easy with the other themes when they had as a blog layout page ๐Ÿ™‚

    Hope this helps!

    Kriss ๐Ÿ™‚

    Website: www.kellinoservices.co.uk

    #42420

    Ok so thought I had cracked it but… I am getting Home appear on the bottom of the landing page…mmmm

    Kriss ๐Ÿ™‚

    Website: www.kellinoservices.co.uk

    #42435

    I am getting the same weird block. Very frustrating!
    Any news?

    #42438
    #42439

    No that doesn’t work. Now my separate Blog page is blank.
    Any suggestions guys?
    Want a Home page and a Blog page. Like in the demo. Except I don’t want Blog posts pulled through the Home page. Just featured ones.
    Thanks!

    #42495
    Zed
    Cryout Creations mastermind

    Fluida (and subsequent themes) no longer have the blog template included because the w.org repository reviewer considered it to be extraneous and not needed in the theme. We believe otherwise, but we had to respect this decision for the theme to be accepted in the repository.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #42502

    Seriously!!!

    What a stupid idea!… ahh well..

    Thanks ๐Ÿ™‚

    Kriss ๐Ÿ™‚

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

The topic ‘Separate Blog(Posts) page when using Landing page’ is closed to new replies.