Display post category on page based on page name
-
Basically, if I have a page titled “Design”, I want some page content followed by the most recent post in the category “Design”. For the a page titled “Web”, I want the most recent post from the category “Web” and so on.
I tried this solution:
<?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>
from this forum: https://www.ads-software.com/support/topic/display-the-posts-of-one-category-in-a-page-solved?replies=37
But it doesn’t seem to work for me. Does anyone have any simple way to call in the Page Title into the Post Loop? New to PHP and www.ads-software.com, and excited about what it can do.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display post category on page based on page name’ is closed to new replies.