Link to home
Start Free TrialLog in
Avatar of ldevito
ldevito

asked on

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.

Thanks
$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>';
				else
					$date = '';
			}
		}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of gwkg
gwkg
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason C. Levine
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.