-
AuthorPosts
-
January 7th, 2017 at 15:27 #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.January 7th, 2017 at 15:59 #41801ZedCryout Creations mastermindIf 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.January 7th, 2017 at 16:04 #41803I 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.
January 7th, 2017 at 19:28 #41811I 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(); ?>
February 2nd, 2017 at 18:25 #42391Btw 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
- This reply was modified 7 years ago by Kristina Harmsworth.
February 3rd, 2017 at 10:35 #42420Ok 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
February 4th, 2017 at 06:27 #42435I am getting the same weird block. Very frustrating!
Any news?February 4th, 2017 at 06:38 #42438Never mind found the answer here:
https://www.cryoutcreations.eu/forums/t/options-for-landing-page-featured-icon-blocks-featured-boxes-text-areasShould put this in the theme docs.
February 4th, 2017 at 07:47 #42439No 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!February 5th, 2017 at 17:29 #42495ZedCryout Creations mastermindFluida (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.February 5th, 2017 at 19:10 #42502Seriously!!!
What a stupid idea!… ahh well..
Thanks ๐
Kriss ๐
-
AuthorPosts
The topic ‘Separate Blog(Posts) page when using Landing page’ is closed to new replies.