Remove ID page from wp_count

This should work for you to exclude via ID: //replace the 3,8 with your page ids <?php $args=array( ‘post__not_in’ => array(3,8), ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ); query_posts($args); ?> If you want to exclude via page title you can do this <?php $exclude1 = get_page_by_title(‘Sample Page Title’); ?> <?php $exclude2 = get_page_by_title(‘Sample Page Title … Read more

Get count of custom post tags

why don’t you try: function tag_count( $tagatts ) { $tagatts = get_terms( array( ‘taxonomy’ => ‘gd_place_tags’, ‘hide_empty’ => false, ) ); $tagatts_count = count ( $tagatts ); return $tagatts_count; } add_shortcode( ‘tag_count’, ‘tag_count’ ); it should actually return the term count. I’m just using php for Count instead of a wordpress function.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)