Skip to content

Instantly share code, notes, and snippets.

View macdawne's full-sized avatar
😀
I may be slow to respond.

macdawne macdawne

😀
I may be slow to respond.
View GitHub Profile
@macdawne
macdawne / head-for-the-hills.markdown
Created January 14, 2019 19:11
Head for the Hills
@macdawne
macdawne / Show-Count-Post-Wp.php
Last active July 10, 2017 20:20
Show-Count-Post-Wp.php
<?php
$allpoststype = new WP_Query(array( 'post_type'));
if ($allpoststype->have_posts()) :
$count_posts = wp_count_posts()->publish;
if ( $count_posts == "1" ) :
echo "<center>
<button type='button' class='btn btn-success'>Notification