WordPress.org

Ready to get started?Download WordPress

Forums

query a category within a page that has the same name as the page (1 post)

  1. Gnashrakk
    Member
    Posted 6 years ago #

    we all know that <?php query_posts('category_name=NAMEOFCAT'); ?> only shows the post of that special category you entered. But what if i want the same name as the pagename? that means, it changes when i enter another page.

    Is there an easy solution to this problem, like using the_title or something similar? Have'nt been playing around for that long in WordPress so any help is appreciated.

    Thanks
    Daniel

Topic Closed

This topic has been closed to new replies.

About this Topic