just show the field comment by clicking button

you can do this very easily with jQuery simply wrap your comment form in a div and hide, add a button or a link and on his click event show the comment form so smoothing like this: <a href=”#” ID=”Leave_a_comment”>Leave a Comment</a> <div id=”comment_form_wrapper” style=”display: none;”> <?php comments_template( ”, true ); ?> </div> <script type=”text/javascript”> … Read more

Overflow and Comments

When links are broken into pages (via the settings in WordPress) and the link to bring a user to the comments is clicked it doesn’t just scroll users down the page, it brings them to a separate page that is created. Yes; this is standard WordPress functionality. Paginating comments results in paginated posts, with an … Read more

How to batch convert comments to posts?

You can copy this code into a plugin and when activated will convert all comments into posts, and delete the comments (so you will not have duplicates) You can also limit what kind of comments will be converted the posts using the parameters for get_comments ( http://codex.wordpress.org/Function_Reference/get_comments ) register_activation_hook( __FILE__, ‘wpse_29474_convert_to_posts’ ); function wpse_29474_convert_to_posts(){ $comments … Read more

Where to insert get_comments?

I would rarely use ‘echo’ in WordPress template themes because it can cause output to appear before the loops are even executed (aka, at the top of the page). In this instance, I used the get_comments function within a function that hooked onto the content output: add_filter(‘the_content’, ‘includePosts’, 1); Within the function includePosts, I have … Read more

Comment submission & navigation redirects to default language

I’ve figured out the solution to my problems. Here’s what I did… Note: This is considering the posts, thus comments, are under the ‘Article‘ post-type, which thus create the permalink such as this: site.com/article/post-name/#comments. Adjustments should be made for other uses. To fix problem #1 & #3: if ( !is_admin() ) add_filter(‘get_comment_link’, ‘my_comment_post_redirect’); function my_comment_post_redirect($location){ … Read more

Display of comment_date within get_comments?

The way you’re doing this, you’re going to get the raw SQL date that’s stored in the wp_comments table. You can still use the convenience functions like comment_date with get_comments. In this case, we’ll use get_comment_date. The first argument is the date format — if you leave it blank, WP will use whatever date format … Read more

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