tag = pagename
-
I have been trying to find syntax to express:
If tag = pagename, then do some stuff.I have named my pages so that each pagename should have a corresponding tag that is the same. For example, john-smith.php has a pagename of john-smith and I have created a tag with the john-smith id. When john-smith.php is the active page, I want to display all posts tagged “john-smith.” Since I am working with a template, I can’t use specific names. It seems like I need to get the news for the active page by comparing the active pagename to the tag.
Thanks for any help you can provide.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘tag = pagename’ is closed to new replies.