Genesis Child Theme Modifying Comments display

You can use the genesis_post_info and genesis_post_meta filters in your child theme rather than modify the parent theme frameworks files which will be lost when you update Genesis. Remove comments link from post info add_filter( ‘genesis_post_info’, ‘remove_post_info_comments_link’ ); function remove_post_info_comments_link($post_info) { $post_info = ‘[post_date] by [post_author_posts_link] [post_edit]’; return $post_info; } Add comments link to post … Read more

How to output number of comments with link to comments

The problem is that you are echoing inside a string concatenation. Think of echo as something that will always begin on a new line. In most cases it’s wisest to perform any calculations or string concatenations and store the result in a variable, and then call echo $var; on the following line. In this particular … Read more

assumed as comment line

Firstly, in the for there is missing a ‘$’. It should read: for ( $i = 1; $i <= $im; $i++ ). Secondly, in order to use the page link(s), you need to call the function wp_link_pages(). $im = stripslashes( get_option( ‘tm_alim’ ) ); for ( $i = 1; $i <= $im; $i++ ) echo … Read more

is it possible to have the full code instead in the comments.php page

This function replaces the comment author’s link with the comment author’s profile page, if the comment author is a registered user. Otherwise, the standard WordPress comment author link is displayed. This function is not mine and has been found googling. function graphene_comment_author_profile_link(){ /* Get the comment author information */ global $comment; $comment_ID = $comment->user_id; $author … Read more

Facebook comments widget – App ID

You’ll be able to moderate comments. Here’s the relevant quote from the doc‘s Moderation Tools section: Doing this enables a moderator interface on Facebook where comments from all plugins administered by your app id can be easily moderated together. I personally never used the moderation tool, but it is available if you need it, which … Read more

Returning error upon comment being flagged as spam

This is how I’ve handled passing messages back to the user before: within your current function, set a transient with your message: set_transient( ‘admin_notice’, ‘Please put down your weapon. You have 20 seconds to comply.’ ); Then add a new hooked function: function admin_notices() { $notice = get_transient( ‘admin_notice’ ); if ( $notice ) { … Read more

WordPress comments – delimiter “/” not found

I found a soloution and what causes it. It was not really the delimiter that was the problem it was becasue a user made duplicate posts. Solution: Replace $notify_message .= preg_replace(‘#[\s]+#’, ‘ ‘,sprintf( get_comment_meta($comment->comment_ID, ‘title’,1))) .’ skrev:’. “\r\n” . $comment->comment_content . “\r\n\r\n”; With $notify_message = preg_replace(‘/[\s]+/’, ‘ ‘,sprintf( get_comment_meta($comment->comment_ID, ‘title’,1)) .’ skrev:’. “\r\n” . $comment->comment_content … Read more

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