Forums

Show Posts on Homepage (3 posts)

  1. imagex
    Member
    Posted 1 year ago #

    I want to display excepts fomr the latest posts on my homepage with a thumbnail image next to it, exactly like how they are show on this website

    http://beyourbestasia.com/

    What is the easiest way to do this?

    (there is no widget box available in that area, so i gues it needs to be hard coded, or some shortcode withing the wordpress admin?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    most likely, you will need to hard-code this template;
    you probably need to edit index.php, or make a new front-page.php from a copy of index.php, and make the edits in there. http://codex.wordpress.org/Template_Hierarchy#Front_Page_display

    details depend on your existing theme.

    you will need to use:
    the_post_thumbnail() http://codex.wordpress.org/Function_Reference/the_post_thumbnail
    the_excerpt() http://codex.wordpress.org/Function_Reference/the_excerpt

    and you have to be familiar with the loop
    http://codex.wordpress.org/The_Loop

    and have a good understanding of html and css.
    http://www.w3schools.com/

    link to your site?

  3. imagex
    Member
    Posted 1 year ago #

    thanks for the quick response, i am familiar with HTML, but thats about it, not php...

    Here is the page
    http://www.webdevworks.org/dev16/imagechina82/

    I got the post excepts to add there with a categoryshortcode plugin. But it seems that it is difficult to get thumbnails to display next to the post, do you know if i can do this with what i have already by modifying some code, maybe in the plugin code? or somthing?

Topic Closed

This topic has been closed to new replies.

About this Topic