Changing post status

That code is part of something bigger, as there are many places where the custom post_status needs to be inserted. There are two interesting discussions here at WPSE and both point to the use of this plugin: Edit Flow. Is it possible to have more “levels” of draft/published statuses? Add a new post status in … Read more

Comments Feed & Custom Post Statuses

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””, $one); } add_filter(‘comment_feed_where’, __NAMESPACE__ . ‘\\comment_feed_where_status’); I found this by debugging with “SAVEQUERIES” enabled and dumping the queries array on the feed page.

418 header status, I’m a teapot [closed]

You were right Toscho, it is a plugin called ‘better WP-Security’ I did a search for ‘418’ as suggested in the files I had backed up via ftp and found this: $bwpsmemlimit = (int) ini_get( ‘memory_limit’ ) //if they’re locked out or banned die if ( ( $bwpsoptions[‘id_enabled’] == 1 ||$bwpsoptions[‘ll_enabled’] == 1 ) && … Read more

How can I style future post?

Just use the function get_post_status(). Inside the loop you have access to the Post Id, but if you leave this blank it will use the ID of the current post instead. So you code will become something like this (not tested yet): <h3 class=”entry-title td-module-title”> <?php if( get_post_status() != ‘future’ ) { ?> <a href=”<?php … Read more