Forums

Little help about Query Posts (8 posts)

  1. kOe
    Member
    Posted 2 years ago #

    Look, I have this page, which shows about five posts of a determined category, according with the page's name.

    So, if a page's name its Television, I want it to show the posts of the Television category.

    Tecnically, I'd have to make query posts, kinda like

    <?php query_posts('showposts=5&category_name=XXXXXX'); ?>

    What Im suposed to do in the XXXXXXX?
    I tried the the_title function, but it doesnt worked, and Im not so good with syntaxes.

    Can somebody help me, please?

  2. moshu
    Member
    Posted 2 years ago #

    Don't put posts on Pages - if you are talking about Pages. They are not for that.

    What is it exactly what you want to do. Don't tell me how do you want to do it... tell me what is the desired end result!

  3. kOe
    Member
    Posted 2 years ago #

    I have a website, about tv shows, right? (http://www.overseries.com

    What I want, is a page, that will show the last posts of one single show, and other stuff like reviews about that show.

    I just want this page, show all this stuff by the title of the page.

    If the page its named Lost, then show all the last posts and reviews of the Lost category, you know?

    its kinda like that...
    sorry about my english...

  4. kOe
    Member
    Posted 2 years ago #

    I just need to know what I have to do to query the posts by the page's title.

    <?php query_posts('showposts=5&category_name=CODE TO CATCH THE TITLE'); ?>

  5. kOe
    Member
    Posted 2 years ago #

    anyone please?

  6. kOe
    Member
    Posted 2 years ago #

    up

  7. Chris_K
    Administrator
    Posted 2 years ago #

    I'm curious why you're not using Category_Templates? Seems like that might be a much easier way to go about this.

  8. kOe
    Member
    Posted 2 years ago #

    I'll try this way...

    thanks anyway

Topic Closed

This topic has been closed to new replies.

About this Topic