Stealth Published Posts

  • archteryx


    I have a small issue where I am using a plug-in “Stealth Publish”, which allows me to bypass the frontpage when creating posts .. avoids the clutter from adding historical or other posts not meant to be out there.

    However, this feature prevents the slider on the graphene theme from picking up the post .. I dont want it in the main blogroll, but I would like the slider having access..

    Th plug in mentions some modifications to the code, but I cant make any understanding or headway..

    any advice.. I guess I’m asking if I need to modify some CSS to include avoiding the stealth flag ?

    The website plugin is

    the code mentioned is below. is found at


    The plugin is further customizable via three filters. Typically, these customizations would be put into your active theme’s functions.php file, or used by another plugin.

    c2c_stealth_publish_meta_key (filter)

    The ‘c2c_stealth_publish_meta_key’ filter allows you to override the name of the custom field key used by the plugin to store a post’s stealth publish status. This isn’t a common need.


    $custom_field_key (string): The custom field key to be used by the plugin. By default this is ‘_stealth-publish’.


    add_filter( 'c2c_stealth_publish_meta_key', 'override_stealth_publish_key' );
    function override_stealth_publish_key( $custom_field_key ) {
    return '_my_custom_stealth-publish';

    c2c_stealth_publish_silent (filter)

    The ‘c2c_stealth_publish_silent’ filter allows you to override whether the plugin also ensure the post gets published silently (i.e. without sending out pingbacks, tracbacks, and pings to update services).


    $publish_silently (bool): Should stealth published posts also be published silently? By default this is ‘true’.

    $post_id (int): The ID of the post being published.


    // Disable silent publishing for stealth published posts
    add_filter( 'c2c_stealth_publish_silent', 'override_stealth_publish_silent' );
    function override_stealth_publish_silent( $publish_silently, $post_id ) {
    return false;

    c2c_stealth_publish_default (filter)

    The ‘c2c_stealth_publish_default’ filter allows you to override the default state of the ‘Stealth Publish?’ checkbox.


    $state (boolean): The default state of the checkbox. By default this is false.

    $post (WP_Post): The post currently being created/edited.


    // Have the Stealth Publish? checkbox checked by default.
    add_filter( 'c2c_stealth_publish_default', '__return_true' );

    Syahir Hakim


    URL to your site?



    Put code in between backtick (


    ) characters. It’s usually located above the Tab key on your keyboard.



    My apologies for the backtick .. first time poster .

    The URL at present is

    I’d like the slider to include posts , but not have them in the main blogroll .. this way we can publish information items without repeating them in the main list .. kind redundant, and messy.



    Syahir Hakim


    Why not use the “Show posts from categories” option for the slider? You’ll then have another option available to exclude the categories from posts listing.


Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.