New answers tagged


Atom vs RSS2 Let's look at the wp-includes/feed-atom.php and wp-includes/feed-rss2.php files. The updated element of the Atom feed entry is: <updated><?php echo mysql2date( 'Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false ); ?></updated> The pubDate element of the RSS2 feed item is: <pubDate&...


Found the filter: comment_feed_where to filter the WHERE clause, which by default only looks for posts with status = publish. function comment_feed_where_status($where) { return str_replace( "post_status = 'publish'", "post_status = 'publish' OR post_status = 'resolved' OR post_status = 'unresolved'", $...


Try using the_post_thumbnail WP function, inside your <li id="news-single"> markup definition: <li id="news-single"> <a href="<?php echo esc_url( $item->get_permalink() ); ?>" target="_blank" title="<?php printf( __( 'Posted %s', 'my-text-domain' ), $item->get_date('j F Y | g:i a') ); ?>"> ...


PHP files in the wp-includes directory should not be accessible from the outside, they should only be included by wordpress code. Therefor an easy fix to this is to use .htaccess rules to block access to *.php files that are under the wp-includes directory

Top 50 recent answers are included