code highiglight not working comment
code highiglight not working comment
code highiglight not working comment
You can use wp_insert_comment($data); function to check your comment is submit or not. This function will return (integer) The new comment’s ID. on success & (boolean) false if the insert failed. Hope this will helps you
You could do this much simpler like this: <?php $comments = get_comments(‘status=approve&number=5′); ?> <ul> <?php foreach ($comments as $comment) { ?> <li> <?php echo get_avatar( $comment, ’35’ ); ?> <a href=”<?php echo get_permalink($comment->ID); ?>#comment-<?php echo $comment->comment_ID; ?>” title=”on <?php echo $comment->post_title; ?>”> <?php echo strip_tags($comment->comment_author); ?>: <?php echo wp_html_excerpt( $comment->comment_content, 35 ); ?>… </a> </li> … Read more
There’s a way. First convert posts to topics and comments to replies with WordPress-to-bbpress-converter. This script is designed for BBpress 1: so you have to install first BBPress 1 and then use the script. After that you could use the official BBPress importer (from BBPress 1 to BBPress 2) located in Tools -> Forums -> … Read more
This is possible : you can fetch the comments form the database in the admin side in the same way you would do it on the client side with get_comments. Now the question is : where exactly, in the admin side, do you want to display you custom comments ? You can for example create … Read more
Your question is actually pretty good, as you’ve found an edge case. The level (0-10) are still built into the roles system. So your custom role names collide with the built in capabilities. As role names get added as capability too, you should switch them to something more unique. Hint: Roles are a flat system. … Read more
I can’t see a way to do it with any existing plugins. Probably the best thing to do would be to modify the plugin so that in the short code you could put “post=186” where 186 corresponds to the number of the page that you’re posting it on. And then modify the output of the … Read more
Incorrect redirection after commenting on custom type
Number/ Position of a Comment