Tag Info

New answers tagged

-1

comments_template();----> Loads the comment template. For use in single Post and Page displays. Will not work outside of single displays unless $withcomments is set to "1". my bet is that you need that ->$withcomments thingy


0

This is just good user experience (UX): When someone clicks on Comment or Answer, they have started writing their comment already in their mind. Don’t break that flow with secondary fields. This the reason why you should move the textarea to the top. To change that, you could listen to document changes, check the comment fields to see if they exist, are ...


0

This should not be do difficult to achieve. What I would suggest is to create yourself a child theme. It is quick and very easy. The reason for this is, never make changes to a theme/plugin that you are not the author of. Once you have your child theme up and running, copy the page.php template from the parent theme to your child theme and rename it ...


0

Goto settings>Reading> and look for "Front Page Displays". Select the "A static Page" radio button and below that click the drop down for "Front Page" and select which page you want for your home page.


0

In the content.php, add code like this: if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '$text_domain' ), __( '1 Comment', '$text_domain' ), __( '% Comments', '$text_domain' ) ); ?></span> ...


0

Right bellow the content (single post) <?php if (function_exists('paged_comments_template')) paged_comments_template(); else comments_template(); ?> And the approval you need change in the wordpress panel.


0

In WP 3.9.1 when you pass tinymce setting in front-end, it fails to load inlinepopups plugin for some reason. So you can set editor styles through global variable and it won't break whatever logic they use for loading plugins. $GLOBALS['editor_styles'] = array(get_stylesheet_directory_uri() . '/css/editor_style.css');


0

I thought I'd add an answer to the above as it may not be immediately obvious to others searching for this issue. In Settings >> Discussion you can uncheck "Allow people to post comments on new articles" in the Default article settings. However, note that this will only affect new posts/pages. You can bulk edit the existing pages in the dashboard Posts or ...


1

People can always disguise their name or their IP address so the only foolproof way is to ensure that all comments are held for moderation then simply trash the comments from the person you wish to block.


0

You can try the edit_comment hook that's fired within the wp_update_comment() function, called by the edit_comment() function when you edit a comment in the backend. This hook is fired after the comment is updated in the database. Example: add_action( 'edit_comment', function( $comment_ID ) { // ... your code here ... } ); Notice ...


0

This is what I used to hide some of the meta boxes, including the comment status box: if (is_admin()) : function my_remove_meta_boxes() { if( !current_user_can('manage_options') ) { remove_meta_box('postcustom', 'post', 'normal'); remove_meta_box('trackbacksdiv', 'post', 'normal'); ...


0

The callback is already passed arguments but crazily the codex doesn't document them. However it does give you an example and the first two lines are: function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; which matches the equivalent functions in the bundled styles. Once you've set the comment object passed as the global ...



Top 50 recent answers are included