Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jen via CDS Support

    (@cds2016)

    Well, I was only able to get it up and running so quickly due to your awesome support! I do plan on tossing a decent donation your way as I foresee using your plugin quite a lot in the future—thanks for your awesome contribution and time dedication to the WP community.

    Thread Starter Jen via CDS Support

    (@cds2016)

    Thanks! It looks like I got it to work by modifying the code as you advised:

    line 63:

    return ( $date_timestamp < strtotime( 'today' ) && $date_timestamp < strtotime( '- 6 months' ) );

    line 95:

    return ( $date_timestamp < strtotime( 'today' ) && $date_timestamp > strtotime( '- 6 months' ) );

    Please let me know if you think anything about the mods are a bit “hacky” since I’m quite rusty at PHP, but so far it looks functional for my client’s needs.

    Thank you for your help with this, and for a great plugin!

    Thread Starter Jen via CDS Support

    (@cds2016)

    Yes—I came across that thread in my search but moved on as it didn’t seem to mention any way of setting any sort of a date range.

    I will take your advice and look into modifying the extension you shared. We’ve already got 5 of your extensions installed so thanks again for all you’ve done with this plugin—I know this date situation is probably a crazy, one-off need.

    I can probably figure out how to setup a ‘show only dates within a 6-mo range’ environment eventually, but do you have any guidance on how to make this work for both tables? Where one shows the most recent 6 mo. of data, and the other page would hide that data? It’s been years since I’ve gotten down with good ol’ PHP. Of course, I plan to share any solution I end up with here in the forum, just in case anyone in the future has a similar need.

Viewing 3 replies - 1 through 3 (of 3 total)