WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] a menu that shows categories, and posts under that category (3 posts)

  1. venkmanuk
    Member
    Posted 3 years ago #

    hi there,

    i've looked around and can't find what i'm looking for.
    it's probably pretty simple..

    i'm trying to make a menu that shows categories, and shows all posts under that category.

    so there would be

    CATEGORY ONE
    item 1
    item 2
    item 3

    CATEGORY TWO
    thing one
    thing two
    thing three

    <DL>
    <dt>CATEGORY ONE</dt>
    <dd>thing three</dd>
    <dd>thing three</dd>
    <dd>thing three</dd>
    <dt>CATEGORY TWO</dt>
    <dd>thing three</dd>
    <dd>thing three</dd>
    <dd>thing three</dd>
    </DL>

    .. how do i do that?
    like what's the php?

  2. venkmanuk
    Member
    Posted 3 years ago #

    yo, ok.. i think i might have found the answer in this thread.
    http://wordpress.org/support/topic/add-catagory-post-list-in-menu-help
    i'll let you know ;)

  3. venkmanuk
    Member
    Posted 3 years ago #

    hi, no that thread didnt have an answer.

    it's done like above, so you run a loop for the categories, then nested inside that loop you go looking for the post titles.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.