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
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 = '';
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.