Forums

How to list several categories ? (5 posts)

  1. yannick1234
    Member
    Posted 1 year ago #

    Hi,

    The listing of 1 category is quite easy, I understood you just have to indicate "?cat=xxx" after the URL.

    But what if I want to display results of 3 different categories ?

    Is it possible ?
    I tried several different syntax but it never worked :-(

    Regards,
    Yannick

  2. yannick1234
    Member
    Posted 1 year ago #

    Hi there,

    For instance I have some posts under the categories "French grammar" (cat=41) and "French teacher Marie" (cat=53) .

    I would to list all posts that are under those 2 categories.
    I tried to put "?cat=41&cat=53" at the end of my URLs, but it doesn't work :-(

    Thanks for any help !
    Yannick

  3. MichaelH
    moderator
    Posted 1 year ago #

    Try this:
    http://www.sample.com?cat=41&53

    Also look at this plugin for useful info:
    http://wordpress.org/extend/plugins/tdo-tag-fixes/

  4. yannick1234
    Member
    Posted 1 year ago #

    Hi there,

    Thanks for the answer !
    I tried but it didn't work as I want.

    My 2 categories are :
    - PARIS LIFE & CULTURE = http://www.parisbypod.com/?cat=61
    - REPORTAGE-PHOTO = http://www.parisbypod.com/?cat=58

    If I try http://www.parisbypod.com/?cat=61&58, only the category 61 is displayed, not the two : http://www.parisbypod.com/?cat=61&58

    Note : in the "Permalink" options I have checked "Date and name based", maybe it comes from here ?

    I'm sure there's a way to do it !
    I'm going to try your second proposal, the plug-in.

    Regards,

  5. mores
    Member
    Posted 1 year ago #

    http://www.parisbypod.com/?cat=61&58 does not work.
    Separate categories with a comma.
    http://www.parisbypod.com/?cat=61,58

Topic Closed

This topic has been closed to new replies.

About this Topic