• 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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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!

    Thread Starter koe

    (@koe)

    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…

    Thread Starter koe

    (@koe)

    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‘); ?>

    Thread Starter koe

    (@koe)

    anyone please?

    Thread Starter koe

    (@koe)

    up

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

    Thread Starter koe

    (@koe)

    I’ll try this way…

    thanks anyway

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Little help about Query Posts’ is closed to new replies.