• Hi there, thanks again for the great theme!

    I’d like to set my front page to be a static page. My goal is to assign posts to specific pages using categories or tags (I’ve been trying out plugins to do this such as “posts to pages.” This way I could showcase my most important posts directly on my homepage, and assign other posts to other pages as I see fit.

    However, I notice that when I set my front page to be static, it changes the format of the front page to a single post format, rather than the multiple posts that display when “latest posts” are selected. I really prefer the “pinboard” look of the various posts listed on my homepage. In fact, I would be delighted if I could set every page on my site to showcase multiple posts the way that the front page does.

    Is there a way to keep my front page static, but still display a variety of posts on it rather than single posts at a time?

    Any help is greatly appreciated!

    https://www.themakeupguy.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • My goal is to assign posts to specific pages using categories or tags (I’ve been trying out plugins to do this such as “posts to pages.”

    In you dashboard area under Appearance->Menus, you will see that it’s possible to add “Categories” to a custom menu. By selecting your custom menu to be your primary menu, you will be able to link to “pinboard” style category pages.

    Is there a way to keep my front page static, but still display a variety of posts on it rather than single posts at a time?

    If you want to keep your blog posts on your front page, why not select the “Your Latest Posts” option within the “Customise” panel?

    Thread Starter davebuilder

    (@davebuilder)

    I’m sorry, I didn’t explain myself well. What I meant to say is that I like the grid display, which only seems to load on the front page if “latest posts” is selected. If I select “static page” and select the home page as my front page, it only loads a single post at a time in a linear fashion, the way all the other pages seem to load.

    I may end up just using “latest posts” as my front page to make things easy, unless there is a simple way to set my home page as the front page and still utilize the grid display.

    we have a website that is comprised of mainly pages. I would love to be able to display some pages on the home page as they would if they were “latest posts”. Is there a way to make this happen?

    thanks
    k

    @davebuilder: Sorry I couldn’t be of more help.

    @nomadaart: Please can you start your own thread. This makes support easier and will give you the greatest chance of getting the help you need. It also stops threads such as these from getting cluttered and confused with multiple topics. Thank you.

    Hi davebuilder , maybe this Plugin helps to do that, haven’t had time to test it myself yet, but here it is:
    https://www.ads-software.com/plugins/tpg-get-posts/
    Good luck, let me know how it goes ??

    To show multiple posts you need to change the $query_string global variable for the loop running.

    Use the function query_posts() before the loop like this:

    <!-- Changes the query_string for the front page. -->
    <?php query_posts( 'posts_per_page=3&cat=13' ); ?>
        <?php if ( have_posts() ) : ?>
            <?php /* The loop */ ?>
            <?php while ( have_posts() ) : the_post(); ?>
                <?php get_template_part( 'content', get_post_format() ); ?>
            <?php endwhile; ?>
        <?php else : ?>
            <?php get_template_part( 'content', 'none' ); ?>
        <?php endif; ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Read This – https://codex.www.ads-software.com/Function_Reference/query_posts

    Enen

    (@nnagarajan7)

    Hi Friends,

    I had wanted to display a particular category as static page which I have achieved by creating a separate page template and by adding <?php query_posts(‘cat=1&posts_per_page=8’); ?>

    However, the above code displays posts only from one category. I would like to display a few posts from more than one category. For e.g. the above code will display 8 posts from cat=1. Say I would like to display 3 posts each from categories 1, 2 and 3.

    Please can anyone suggest a simple way.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Static front page but with multiple post display’ is closed to new replies.