[Resolved] Using page name in a query
I’m using wp_query with custom fields to get the specific set of posts I want for a page. I’m doing this because I believe categories don’t work at the page level – not sure if that’s true but I think I’d have the same issue.
Rather than writing a separate page php for each one, it would make sense for me to pick up the page name and use it in the wp-query, so I would only need one php file. Is that possible? I can’t find a way so far.
- The topic ‘[Resolved] Using page name in a query’ is closed to new replies.