• Resolved j0d

    (@j0d)


    I’m not qutie sure to to explain this, but the closest example i can give is the BBC news website (http://news.bbc.co.uk). i wish to do somethign like this, with the latest posts from the different catagories, and posts marked headlines showing at the top.

    is there a way to make this, or should i use wordpress to display a number of entires and use CSS to display them in different areas

    any help would be appreciated. Thanks/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Depends how you want it exactly, but you probably need to do some coding for customizing a theme, then adjust the stylesheet for displaying it the way you want.

    You could try using home.php, which will be loaded as your front page in preference if it exists. As a starting point rename a copy of index.php and hack it as you want. For putting your posts where you want, get_posts or query_posts may be the way to go.
    http://codex.wordpress.org/Template_Hierarchy
    http://www.chrisjdavis.org/2005/06/13/secrets-pt-3/

    Thread Starter j0d

    (@j0d)

    thanks for the help, let me get this straight though, if i make a home.php out of index.php it will load home.php , is this correct?

    and therefore i can jsut create home.php in whatever style i want and it wont effect the layout of the other pages.

    Yes, home.php is only called for your starting page. Index.php, single.php etc.. will still be used in order of preference as described on the Template Hierarchy codex page.

    Check out this template file. It may be what you are looking for.

    Thread Starter j0d

    (@j0d)

    thats exactly what i’m looking for, just got to edit it for my layout now, thanks

    Thread Starter j0d

    (@j0d)

    as a follow up, i’ve created a home.php to my liking, but i dont have a index.php , what showuld i put on index.php to make it read home.php as the main page?

    You need an index.php. All themes need an index.php.

    If you have both index.php and home.php, then WordPress will automatically use home.php for requests to the home page (that is: no query string).

    Thread Starter j0d

    (@j0d)

    so i can just have a blank index.php, or model it around single.php?

    Did your theme originally come with an index.php?

    index.php handles all request for which a seperate template file does not exist. So, if you have a seperate template file for each of the items listed in the Template_Hierarchy, then you could conceivably get by without an index.php (or with a blank one).

    If you do not have a seperate template file for each element, then your index.php needs to be constructed to provide a Loop to handle all fall-through requests.

    Thread Starter j0d

    (@j0d)

    this is a self-created theme, thanks you’v been alot of help , am jsut going to stick a loop in the index.php that will display a “cannot display entries, please contact Admin with what you were trying to access”, so i can create a page for what they were trying to access

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Alternative Start Page’ is closed to new replies.