Commenter should see only his comments in wordpress

What you need to do to achieve this is to provide the second parameter of wp_list_comments(), which would be $comments and is described like this: (array) (optional) Array obtained by get_comments query. Default: The default return of get_comments. Which actually makes it clear what you need to do, which would be utilizing get_comments(). Below a … Read more

Removing /author/ slug from URL gives 404

You are just doing it wrong. Adding a per user rewrite rule will just bloat the rewrite “table” and slow down the URL parsing process. You need to come up with a generic rewrite rule which will work for all users, or write an alternative url parsing using the ‘do_parse_request filter. Your core problem is … Read more

If post author ID is..show that

The function is_author() is used to check if you are on the archive page for the specified author. So as your code is in single.php this will never be true. From the docs This Conditional Tag checks if an Author archive page is being displayed. This is a boolean function, meaning it returns either TRUE … Read more

How to use Buddypress xProfile field as WordPress Bio

To just answer this question.. Hope it’s okay to pull this back up ^^ <div class=”profile-bio”> <!– Profile user info bio text –> <?php if ( $string = xprofile_get_field_data( ‘About’, get_the_author_meta(‘ID’) ) ) { echo ‘<div class=”author-about”>’; echo $string; echo ‘</div>’; } ?><!– EOF Profile user info bio text –> </div> I’m also using this, … Read more

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