Hi, at present my RSS feed is showing my Custom posts in date order, but because its an events custom post type I don’t want to show the RSS feed in the posted order, it currently works by displaying in meta_key – date order.
The WordPress loop on my page looks like:
/*
* Display posts only from today and into the future via date picker
*/
$date_args = array(
‘post_type’ => ‘training’,
‘meta_key’ => ‘date_picker’, // name of custom fiel
‘posts_per_page’ => 10,
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘ASC’,
‘meta_query’=> array(
array(
‘key’ => ‘date_picker’,
‘compare’ => ‘>’,
‘value’ => date(“Y-m-d”),
‘type’ => ‘DATE’
),
),
);
$date_query = new WP_Query( $date_args );
// The Loop
?>
have_posts() ): ?>
have_posts() ) : $date_query->the_post(); ?>
$attachment_id = get_post_thumbnail_id(); // attachment ID
$image_attributes = wp_get_attachment_image_src( $attachment_id,’full’ ); // returns an array
?>
Will I have to change something in my sites functions.php to do this or can i do it via Super RSS Reader?
Thank you