1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Mar 2015
    Rep Power

    displaying blog post on home page

    Hey I have a wordpress website and in my home page I would like to display my blog posts where people can click on them and read whole blog on a new page I hope you guys understand. how do I do it?
  2. #2
  3. Not An Expert
    SEO Chat Hero (2000 - 2499 posts)

    Join Date
    Jan 2015
    Rep Power
  4. #3
  5. No Profile Picture
    Registered User

    Join Date
    Jun 2015
    Rep Power
    Yes, it can done very easily, you have to do some coding to do this, take some guidelines from the experts of website designers.
    I have seen in most of the website displaying the blog post in homepage.
    If you know coding then it can be done very easily by you if you have no idea then you must try the below code may this will help you.
    "<?php$home_query = new WP_Query('showposts=2');
    if ( $home_query -> have_posts() ) : while ( $home_query -> have_posts() ) : $home_query -> the_post(); ?>

    (Here is where your HTML/PHP code goes that you apply to each post)

    <?php endwhile; ?>
    <?php endif; ?>"

Similar Threads

  1. Landing Page vs. Blog Post for key words
    By lsilver in forum Search Engine Optimization
    Replies: 2
    Last Post: Jun 19th, 2012, 01:44 AM
  2. Home Page or Blog for Backlinks
    By Wes4President in forum Google Optimization
    Replies: 2
    Last Post: Jul 28th, 2011, 01:19 PM
  3. Displaying Image Slideshow on Home Page
    By eMaximize in forum Web Design, Coding and Programming
    Replies: 3
    Last Post: Feb 23rd, 2011, 11:07 AM

IMN logo majestic logo threadwatch logo seochat tools logo