• amoric69

    (@amoric69)


    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

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

    (@alchymyth)

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

    Thread Starter amoric69

    (@amoric69)

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filtrer une liste d'articles par leur ordre de taxonomie’ is closed to new replies.