Stealth Published Posts

  • archteryx

    #7822

    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

    http://wordpress.org/plugins/stealth-publish/other_notes/

    the code mentioned is below. is found at http://wordpress.org/plugins/stealth-publish/other_notes/

    Filters

    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.

    Arguments:

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

    Example:

    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).

    Arguments:

    $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.

    Example:

    // 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.

    Arguments:

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

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

    Example:

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

    Syahir Hakim

    #39485

    URL to your site?

    Prasanna SP

    #39486

    Put code in between backtick (

    Code:
    `

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

    archteryx

    #39487

    My apologies for the backtick .. first time poster .

    The URL at present is http://andydonovan.com/matinecock806org

    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.

    regards.

    Admin

    Syahir Hakim

    #39488

    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.

    5dRQd77.png

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

You must be logged in to reply to this topic.