Why default comment fields don’t show up?

Without code and based upon what you are doing, my advise would be to set WP_DEBUG to true in your wp-config.php. If there are any errors causing the fields not to display, they are likely to show up. Especially since you are coding a custom theme, there is a good chance of errors somewhere you … Read more

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

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