WordPress.org

Ready to get started?Download WordPress

Forums

Filtrer une liste d'articles par leur ordre de taxonomie (3 posts)

  1. amoric69
    Member
    Posted 2 years ago #

    Bonjour,
    Aprs avoir créé une taxonomie 'type' qui a le slug 'tranche', je l'ai attribué à des articles.Dans une page, je cherche à filtrer l'ordre d'affichage d'une liste d'articles par ordre alphabétique :
    case "2" : $postslist = get_posts('showposts=100&category=132&order=ASC&orderby=name'); , et par leur slug. C'est là où cela se complique, showposts=100&category=132&slug=tranche&order=ASC&orderby=slug ne fonctionne pas, showposts=100&category=132&slug=tranche&order=ASC&orderby=taxonomie npn plus, case "4" : $postslist = get_posts("showposts=100&category=132&taxonomy=238&order=ASC"); , rien. Par défaut il affiche la liste par ordre d'ID.

    Quelqu'un connait la solution ?

    Merci

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    these are english speaking forums - please repost your question in english.

  3. amoric69
    Member
    Posted 2 years ago #

    Hello,
    I've created a “type” taxonomy which has the slug “tranche”, I allotted it in articles. In a page, I seek to alphabetically filter the command of posts of a list of articles:
    case "2" : $postslist = get_posts('showposts=100&category=132&order=ASC&orderby=name');
    OK
    and by his slugs, It is where that becomes complicated,
    showposts=100&category=132&slug=tranche&order=ASC&orderby=slug
    no result
    showposts=100&category=132&slug=tranche&order=ASC&orderby=taxonomies
    no
    case "4" : $postslist = get_posts("showposts=100&category=132&taxonomy=238&order=ASC");

    nothing.
    By defect it is posted the list by command of ID.

    Does somebody know the solution?

Topic Closed

This topic has been closed to new replies.

About this Topic