Adding Status To Single Template Using Child Theme

I am wanting to add Status to one particular page on my wordpress site. I currently use Saliant Child Theme. I do not know how to change the coding to add Status to that one particular page. How would I add Status to that one page. What would be the easiest way to do so.

  • Vinod Dalvi

    Hi Tristan,

    Thank you for your question.

    You can add Status to that one particular page by setting the option 'Show on public pages' to ' I will be using it in a widget' in the Status plugin settings on the following path as displayed in the attached screenshot.

    Admin Area -> settings -> Status

    Then use any one the following plugins to create status widget shortcode and add that created shortcode on that particular page.

    https://wordpress.org/plugins/amr-shortcode-any-widget/
    https://wordpress.org/plugins/widget-shortcode/

    Please advise if you have more questions.

    Best Regards,
    Vinod Dalvi

  • Predrag Dubajic

    Hi @Tristan,

    My apologies for the extreme delay on this thread.

    I have a solution that would require little bit of coding but should help you out with setting this up.
    Status plugin has an option to assign your posts to certain category or select default post format which it will use. See screenshot below.
    You will need to choose one of those options to continue and we will later filter the posts by the category or post format depending on your choice.

    My suggestion is to use post format and create two new page templates, one to show only selected post format and other to show other posts, which you can use as your posts page.
    You can read more about creating templates here:
    http://codex.wordpress.org/Page_Templates

    In the first template where you want to show all posts use this custom query to hide Service post format:

    $formats = new WP_Query( array(
    	'post_type' => 'post',
    	'tax_query' => array(
    		array(
    		'taxonomy' => 'post_format',
    		'field'    => 'slug',
    		'terms'    => array( 'post-format-status' ),
    		'operator' => 'NOT IN',
    		)
    	 )
    ));

    Now in the second template hide all other posts using this custom query:

    $query = new WP_Query( array(
        'post_type' => 'post',
        'tax_query' => array( array(
            'taxonomy' => 'post_format',
            'field' => 'slug',
            'terms' => array('post-format-aside', 'post-format-gallery', 'post-format-link', 'post-format-image', 'post-format-quote', 'post-format-audio', 'post-format-chat', 'post-format-video'),
            'operator' => 'NOT IN'
           )
        )
    ));

    After you have created you templates, go to admin section, create new pages with new templates selected and that should be it.

    Let me know if you need more help with this.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.