WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
Static front page but with multiple post display (7 posts)

  1. davebuilder
    Member
    Posted 7 months ago #

    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!

    http://www.themakeupguy.com

  2. 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?

  3. davebuilder
    Member
    Posted 7 months ago #

    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.

  4. nomadaart
    Member
    Posted 6 months ago #

    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

  5. @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.

  6. hartmutnz
    Member
    Posted 6 months ago #

    Hi davebuilder , maybe this Plugin helps to do that, haven't had time to test it myself yet, but here it is:
    http://wordpress.org/plugins/tpg-get-posts/
    Good luck, let me know how it goes :-)

  7. Kamrul Hasan
    Member
    Posted 4 months ago #

    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 - http://codex.wordpress.org/Function_Reference/query_posts

Reply

You must log in to post.

About this Theme

About this Topic