Page comes up blank using w3 total cache [closed]

You can turn off caching for your wp_list_comments template by placing define(‘DONOTCACHEPAGE’, true); at the top of the page. Other constants available on a per page or template basis are: define(‘DONOTCACHEDB’, true); Disables database caching for given page. define(‘DONOTMINIFY’, true); Disables minify for a given page. define(‘DONOTCDN’, true); Disables content delivery network for a given … Read more

Display last comments on home page

A slightly more complete and less abrupt answer. <?php $args = array( ‘status’ => ‘approve’, ‘number’ => ‘5’ ); $comments = get_comments($args); foreach($comments as $comment) : // display any of the following indexes as you’d like var_dump($comment); endforeach; ?>

create separate page template for wordpress comments

That appears to be simply a Page template that outputs the “Recent Comments” Widget for comments and pings, and then (probably) another Widget that displays a list of most-commented Posts. If those indeed are Widgets, then you simply need to create a custom Page template, and instead of outputting a Loop, output a the_widget() call … Read more

It doesn’t matter if I have more than one comment. get_comments_number still equal to one?

I think the problem is here >] <h3 id=”comments-title”><?php printf( _n( ‘One Response to %2$s’, ‘%1$s Responses to %2$s’, get_comments_number() ), number_format_i18n( get_comments_number() ), ‘<em>’ . get_the_title() . ‘</em>’ ); ?></h3> Try changing that to <h3 id=”comments-title”><?php printf( _n( ‘One Response to %2$s’, ‘%1$s Responses to %2$s’, number_format_i18n( get_comments_number() ), ‘<em>’ . get_the_title() . ‘</em>’ … Read more

Allow tags between shortcode in comments

You want to allow folks to post code in their comments, like on here were we can just do <p>something</p> without having to worry about doing any &gt; or &lt; stuff? I think you’ll still want those special html characters converted to their respective entities, but you need to stay under the radar to avoid … Read more

Avoiding calls to theme-compat

I’m not sure why you would want to remove the aria-required attribute. It is a form attribute in draft at W3 that deals with accessibility for working with applications and handicapped users. Anyway, you can remove it by filtering the comment_form_default_fields and comment_form_field_comment. The example below can be used as a plugin or in your … Read more