Wordpress PHP RSS Widget tweak

We use the RSS Widget on our Wordpress site for event lists.  I'd like to get our RSS Widget on our Wordpress site to check to see if the date of the RSS [pubdate] is greater then the current date but I haven't figured out a way to add it to the code.

I've pasted the code to where I think I could add an if statement.

I would appreciate any help in figuring this out.

$date = '';
		if ( $show_date ) {
			$date = $item->get_date();

			if ( $date ) {
				if ( $date_stamp = strtotime( $date ) )
					$date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>';
					$date = '';

Open in new window

Who is Participating?
gwkgConnect With a Mentor Commented:
if( $date_stamp = strtotime( $date ) )

should be

if( $date_stamp == strtotime( $date ) )
Jason C. LevineNo oneCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.