Forums

Excerpts from every Category on one page (10 posts)

  1. misslovelylara
    Member
    Posted 6 years ago #

    Hi, I'm currently doing a website for a client, and I wanted to know if and how it is possible to display excerpts from one post in each category on the main index page. The test page is here, http://wptest.elegantwebscapes.com/lara/, if you want to get a feel for what I am looking for. Thanks in advance for all your input!

  2. Dgold
    Member
    Posted 6 years ago #

    That's one of the first 5-column pages I have seen. That is gonna be packed (maybe too packed) with words when you get content, hope you can introduce some 'blank space'. Another critique, I like your category header graphics except the "Our Health" one, the food just doesn't look right to me color-wise cuz of the shading. The others look nice. On to your question - I don't have the answer but I would like to know how to do that also. A nice similar example (not on WP tho, as far as I know - not my site) is:
    http://www.wilsonminer.com/live/

  3. Monika
    Member
    Posted 6 years ago #

    http://codex.wordpress.org/Conditional_Tags

    this site will help me everytime ...
    have a nice day
    Monika

  4. Jinsan
    Member
    Posted 6 years ago #

    I would try the following plugin:

    http://coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/

    as a solution conditional tags wouldn't wholly work in this instance, and I have feeling you may need to play with the loop if you want to do this manually:

    http://codex.wordpress.org/The_Loop#Multiple_Loops_Version_1

    The plugin will make the process VERY easy - but it may not be what you're looking for.

    With the plugin, you wuld place the function into each column - and specificy that column x will display an excerpt from cat x, while cat y will display an excerpt from cat y. As you update your entries, the excerpt will update based on the latest entry

  5. misslovelylara
    Member
    Posted 6 years ago #

    I have a problem now... Ive been able to display one post from each category on the main page, but I want the reader to click on the word "more" in each little section and be brought to a "regular" page to read it on. I want to create a new style sheet for this "regular" page which will show the lates 5 or 6 posts from that category. Right now when I click on the permanent link, I basically just refresh the page.

  6. misslovelylara
    Member
    Posted 6 years ago #

    ^^ and basically on this "Regular" reading page I'll need a new loop.

  7. misslovelylara
    Member
    Posted 6 years ago #

    I'm figuring I need to use if then statements for this... I just don't know how to do that to change the CSS file.

  8. Joshua Sigar
    Member
    Posted 6 years ago #

    What's the content of the "regular" page? One full post and a list of 5 latest posts of same category?

    If so, then your setup would be
    main page -> index.php
    regular page -> single.php

  9. misslovelylara
    Member
    Posted 6 years ago #

    by just assigning the page the name 'single.php' wordpress will use it when reading posts?
    i'll try it out.

  10. misslovelylara
    Member
    Posted 6 years ago #

    got it all fixed :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags