Don’t Worry, You’re In The Right Place
A lot of these posts were originally on So if you found them through search engines or clicking around, this is their new home :). Enjoy!

How to target older posts with the Genesis Framework for WordPress

I have about 100 posts on my site right now and it keeps growing. Sometimes older posts get out of date because they’re tutorials and software gets updated.

It’s a huge time consumer for me to go back to all my tutorials, read every single one, and update them. So, instead I came up with a way to just target all my posts that are older than three months, and let the user (you) know that if you see something that’s out of date, shoot me an email!

I’m not going to write a huge long post. The process is actually pretty simple. Here’s the snippet:

What this snippet of code is doing is finding today’s date, then finding the date of the post. Once it has those, it finds the difference in days. Than you can target any page you want using conditionals. Add what you want to display, and that’s it!

You can see this snippet in action when you visit an old post of mine! =) Enjoy!

About the Author
What's UP! This is my site, I write 99% of the articles on here. I'm also the owner of I help out a lot of developers and designers getting into the web game. Helping is fun for me, so feel free to ask me any questions! I've made courses and have a membership as well to help get you on your feet!

0 comments on How to target older posts with the Genesis Framework for WordPress

    1. Jonathan says:

      =) Thanks! I kept getting feed back like that code is wrong and blah blah blah. So instead of me constantly saying that post is old, I figured this would be the easier.

  1. Roberto says:

    add the comment at the bottom of the article.

    your readers love to read *really fresh* articles, don’t make them feel like reading and old newspaper while read the snippet alert on the header. 😛

    thanks for share this one 🙂

    1. Jonathan says:

      Great Point!!! Doing it now! =)

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top