Hi guys,
Really pulling my hair out with this one. I have a wordpress blog with a plugin that uses a page on the site.
I've assigned a custom wordpress template to the page in question and would like to display some unique HTML on specific specific auto-generated child pages. These child pages aren't actually created in wordpress so I'm unable to just use wordpress conditions based on the pages attributes (ID, slug etc).
My question is, how can I use PHP to display custom HTML code based on a specific wordpress URL? I've tried some php snippets but i always get header errors.
I know my way around the Wordpress Codex stuff, but no clue about the PHP stuff.
Any help would be amazing
if (get_permalink() == "http://myurl.com/thispagethatiwant") {
echo 'hi';
}
This looks to be the simplest way, but it echos the text across other areas like
http://myurl.com/thispagethatiwant/category1/
http://myurl.com/thispagethatiwant/category2/ etc
I want the text limited absolutely to a specific url.