Add a quick post link to your WordPress blogOctober 3, 2010
WordPress’s conditional tags are pretty freaking awesome. They came to my rescue when I wanted to add a quick “new post” link to my blog pages for when I’m logged in (which is nearly all the time). Here’s a quick block of code to help you do the same:
That’s all you need on the PHP side; just add it to the end of your footer.php right before the
wp_footer(). To style it, here’s a quick bit of CSS:
And that’s it—enjoy!