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

  1. Gnashrakk
    Posted 8 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.


Topic Closed

This topic has been closed to new replies.

About this Topic