Support » Fixing WordPress » Add latest blog posts under a static page on Home

  • Hello guys,

    i’ve searched a lot but i only found how to add separate pages for static home and blog posts.

    But i want to put a static page on my homepage, and under this page displaying latest blog posts. Is this possible? How?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Exactly what are you trying to accomplish? A static page by definition would not show the latest posts.

    You can try the Display Posts Shortcode plugin. It allows you to display your latest blog posts using a shortcode. The plugin comes with an extensive set of parameters for the shortcode so you will need to refer to the documentation link on the plugin page.

    You can also add the display post shortcoide as a widget to your static page. To execute shortcodes in text widget you will need to enter this code in your theme’s functions.php file first:

    add_filter('widget_text', 'do_shortcode');

    @kmessinger by default, wordpress homepage displays latest blog posts; if i use a static page instead, homepage will display it and blog posts will disappear (in homepage, but will be available in another page). So,
    my request is to have a static home page, but blog posts still displayed on it, just under the static homepage.

    @nouman yaqoob i tried the plugin and it works but it does not mantain the theme css, so thumbnail images are not in the same style of my theme…do you have something else?

    my request is to have a static home page, but blog posts still displayed on it, just under the static homepage.

    for some related code, check for example the showcase.php template of Twenty Eleven;

    https://themes.svn.wordpress.org/twentyeleven/2.1/showcase.php

    but it does not mantain the theme css, so thumbnail images are not in the same style of my theme..

    you will likely need to do some specific formatting for that.

    @saveriott12 you will have to add your own CSS. Display posts shortcode allows you to chose a wrapper for results. You can choose div as wrapper and then examine the classes generated by display posts for thumbnails, entry title, etc. Add these classes to your theme’s stylesheet. Then copy the CSS used by your theme for thumbnails paste it. I know its a bit complicated but its the most flexible way.

    On the other hand if you just want to display latest posts from your blog then you can try other plugins like ‘Recently’ or ‘Recent Posts Advanced’. No matter what plugin you use there will always be some CSS adjustment required.

    http://www.mhthemes.com/support/files/2014/06/set_static_front_page.png

    having this menu option, is it possible to display both Front page and Posts Page in Homepage? This is what i’m trying to achieve.

    @noumaan Yaqoob

    i added all div classes to the plugin , but seems like it does not take care of css and there is still no style applied. Does this plugin use main wordpress css? How do i tell the plugin to use my theme css?

    Don’t you have a solution?

    Chava

    (@naturaltoothsoap)

    I’m trying to do this, too. I’m using the Family Child Theme. Can someone help?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add latest blog posts under a static page on Home’ is closed to new replies.