Skip to:
Content
Pages
Categories
Search
Top
Bottom

retrieving topics from a specific category

  • I want to show this on my front-page.php

    Music Category:-

    - latest topic relating to music 1 , posted by (author) etc…

    - latest topic relating to music 2 , posted by (author) etc…

    - latest topic relating to music 3 , posted by (author) etc…

    - latest topic relating to music 4 , posted by (author) etc…

    - latest topic relating to music 5 , posted by (author) etc…

    code Category:-

    - latest topic relating to code 1 , posted by (author) etc…

    - latest topic relating to code 2 , posted by (author) etc…

    - latest topic relating to code 3 , posted by (author) etc…

    - latest topic relating to code 4 , posted by (author) etc…

    - latest topic relating to code 5 , posted by (author) etc…

    Network Category:-

    - latest topic relating to Network 1 , posted by (author) etc…

    - latest topic relating to Network 2 , posted by (author) etc…

    - latest topic relating to Network 3 , posted by (author) etc…

    - latest topic relating to Network 4 , posted by (author) etc…

    - latest topic relating to Network 5 , posted by (author) etc…

    What is the function to call the first 5 or so topics from a Specific category… please

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

  • Ashfame
    Participant

    @ashfame

    I really don’t know how it could be done but you should be looking for a function with which you can return the current forum category, match it with something you want and then selectively display content as per it.

    like :

    for each topics

    |

    —-check category

    |

    —-if music then music list

    —-else if code then code list

    —-else if network then network list

    Hope that helps. :)


    Ashfame
    Participant

    @ashfame

    You need to have the Forum ID for this. i am giving you a code snippet in the other thread. Just hang up for a few minutes.

    We will continue discussion here in this thread : http://bbpress.org/forums/topic/how-do-i-loop-through-each-forum

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

You must be logged in to reply to this topic.