WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] First letter posts list from specific category ? (5 posts)

  1. dudd
    Member
    Posted 3 years ago #

    Hi,

    I need to show on my category list of posts which title are starts on some letter.

    I use this code :

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

    It work, but i show all blog post that title begin with letter "B"

    So how can i do to list posts from a specific category ?

  2. dudd
    Member
    Posted 3 years ago #

    Excuse me code is here : http://wordpress.pastebin.com/9Ev1UKMJ

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    http://codex.wordpress.org/Function_Reference/query_posts#Category_Parameters

    just add the category parameter to your query, lines 15-19

  4. dudd
    Member
    Posted 3 years ago #

    Merci Rev. Voodo!

    The code is here :

    http://wordpress.pastebin.com/HbpzA2CD

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    De rien! Glad it worked for you!

Topic Closed

This topic has been closed to new replies.

About this Topic