Number of unpublished comments for each post

I wonder if you’re looking for the wp_count_comments() function. To retreive comment count statistics for the whole site, you can use: $comments_count = wp_count_comments(); or for a given post ID: $comments_count = wp_count_comments( 123 ); It will return an object with the following attributes: $comments_count->moderated $comments_count->approved $comments_count->spam $comments_count->trash $comments_count->total_comments Check the Codex for more information … Read more

Rating based off of number of comments or views

I would not take visits into account: To get these numbers you have to connect to an external table, or worse write into the WordPress tables on each request. Use comments, that is built-in. Here is a sample code that adjusts itself to your comment development: add_filter( ‘the_content’, ‘wpse_78513_hotness’ ); function wpse_78513_hotness( $content ) { … Read more

I need help about wordpress of members section

If I understand correctly you don’t need a shortcode or a filter. Just paste your yg_yorumsuz_link_gizle function into functions.php and call it from any template file (they all reside in your theme folder) such as single.php, or from a plugin. if(function_exists(‘yg_yorumsuz_link_gizle’)){ // just in case yg_yorumsuz_link_gizle(); } If you’re only doing it in one place … Read more

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