No problem at all, you can't be expected to remember every person and everything! hehe
So, I did try this, but it sadly didn't turn out how I wanted it to. I'll explain the basic idea before sharing any files or code...
With how my website is set up, I wanted the option of adding a custom "Back" link to Static pages much like you see on the main news post pages and index page of flatpress. The idea would be that the static.tpl would contain a line of code for the back button, and it would somehow grab it's code from elsewhere on a static page using a PHP echo so that I could define the target URL on the fly.
So, on the static template the "a href" would work something like this:
Code: Select all
<a href="<?php echo $link;?>">Back</a>
Then of course comes the plugin code, which can be seen in the following file:
https://mega.nz/file/8lgXDSSL#dKqbPuJYp ... v8vjcLJgYY
Then based on the code above, I define the actual link on a Static page in the following way:
Sadly, the URL never gets defined, and as such the URL ends up as "mysite.com/<?php%20echo%20$link;?>" instead of "mysite.com/pagename".
I've made sure the plugin is enabled, and I can see in the site's header that the plugin is loaded on the page. I'm sure I'm just missing something really small and I'm going to feel like an idiot when it's pointed out what I'm doing wrong, but the forums are here to help support us, so I'm looking forward to feel foolish! haha
Maybe there is a better way than using PHP for this task? I'm open to ideas!