Featured Content Gallery | WordPress Plugin | iePlexus

Show "post_status=future" it's possibile ?

New releases, ideas for the future, and known issues

Show "post_status=future" it's possibile ?

PostBy shen on Mon Aug 30, 2010 8:35 am

It's possibile to show post with post_status=future in FCG ?

I've look the file content-gallery.php and do same change ... but nothing ! :(

if( !$id || 'GETPOST' == $id || 'GETRANDOM' == $id ) {
if( $wp_version < 2.1 )
$query_suffix = "post_status = 'future'";
else
$query_suffix = "post_type = 'post' AND post_status = 'future'";
} elseif('GETPAGE' == $id) {
if($wp_version < 2.1)
$query_suffix = "post_status = 'static'";
else
$query_suffix = "post_type = 'page' AND post_status = 'future'";
} elseif('GETSTICKY' == $id) {
if($wp_version < 1.5)
$table .= ', ' . $tablepostmeta;
else
$table .= ', ' . $wpdb->postmeta;
$query_suffix = "ID = post_id AND meta_key = 'sticky' AND meta_value = 1";
} else {
$query_suffix = "(post_status = 'future' OR post_status = 'static')";

----------------------------

and I've add in gallery.php LINE 55

<?php query_posts('category_name=' . get_option('gallery-category') . '&showposts=' . get_option('gallery-items').'&post_status=future,publish'); ?>


Any idea ? Please HELP ME !!!
my site is ventidieci.it
shen
 
Posts: 1
Joined: Mon Aug 30, 2010 4:25 am

Re: Show "post_status=future" it's possibile ?

Thank you for using the Featured Content Gallery Forum
 

Return to Development, Improvement, and Conflicts

Who is online

Users browsing this forum: No registered users and 0 guests