millik1
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Browsing External Cloud Storage Such as OneDriveThanks staartmees there are one or two plugins there which I’ll try. I’m not entirely wedded to the idea of using OneDrive, or even a plugin come to that. I’m hoping there might be other folk out there who have done something similar who might have some tips.
Forum: Fixing WordPress
In reply to: Displaying Future/Scheduled PostsThis is how I display future dates from my ‘Gigs’ category, without resorting to plugins or modifying core WP code …
<?php $my_query = new WP_Query('category_name=gigs&post_status=future&order=ASC'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
Works in later versions of WP 2.xx.
For full details …
https://www.keithmillington.co.uk/wordpress/?p=22Forum: Fixing WordPress
In reply to: how to only show future posts in a catI manage a number of websites where I’ve implemented WordPress driven gig / event lists. There are two headings ‘Gigs’ where I only display future posts – and ‘Previous Gigs’ where I only display past posts.
If this is what you’re after, then full details are here …
Forum: Fixing WordPress
In reply to: Display future regardless of dateThis is how I display future dates from my ‘Gigs’ category, without resorting to plugins or modifying core WP code …
<?php $my_query = new WP_Query('category_name=gigs&post_status=future&order=ASC'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
Works in later versions of WP 2.xx.
For full details …
Forum: Fixing WordPress
In reply to: Displaying Future PostsIs this what you’re looking for? …
Forum: Fixing WordPress
In reply to: Show Posts With Future DatesHere’s my solution which I use on a number of websites to display event / gig lists with future dates, without using plug-ins or having to modify core WP files.
https://www.keithmillington.co.uk/wordpress/?p=22
Thanks to ‘mfields’ who put me on to the idea of exploiting the ‘post_status=future’ function in the first place.