$post_status = 'future'; in a category?
-
Hello WP advanced users!
I have two categories where I post in but I want to use one category as a sort of Events page, it should have the same layout as the normal news though.
Is it possible to display one category with $post_status = ‘future’; and where should I place this code?
It works when I place it in index.php of my wordpress installation but than all my other posts on the site are not visible because it applies it to everything. I also tried this but it still applies to every post and not only category 3:
$post_status = ‘future’;
if (!isset($cat)) {
$cat = “3”;
}$post_status = ‘public’;
if (!isset($cat)) {
$cat = “4”;
}Thanks a lot for the help!
The topic ‘$post_status = 'future'; in a category?’ is closed to new replies.