Missing content on author archive page

Fixed. I used code: <div class=”panel callout radius”> <?php echo get_avatar( get_the_author_meta( ‘user_email’ ), ’96’ ); ?> <div class=”right”> <a href=”https://twitter.com/<?php the_author_meta( ‘twitter’ ); ?>” target=”_blank”><i class=”fi-social-twitter size-24″></i></a>&nbsp; <a href=”<?php the_author_meta( ‘facebook’ ); ?>” target=”_blank”><i class=”fi-social-facebook size-24″></i></a>&nbsp; <a href=”mailto:<?php the_author_meta( ’email’ ); ?>”><i class=”fi-mail size-24″></i></a> Then I found out this function could only be used … Read more

WordPress author box

I’m using Gameleon theme. Single.php code line between 224-261: <?php wp_link_pages( array( ‘before’ => ‘<div class=”pagination”>’ . __( ‘Pages:’, ‘gameleon’ ), ‘after’ => ‘</div>’ ) ); ?> <div class=”clearfix”></div> </div><?php // end of .post-entry / ?> </div><?php // end of #post-the_ID(); / ?> </div><?php // end of td-wrap-content / ?> </div><?php // end of td-content-inner … Read more

Modifying get_author_posts_url() in Multisite

I know you’ve resolved it using .htaccess, but this is generally something you can amend in the site settings in your Network admin. Go to Sites, click Edit, and then scroll down to find the permalink structure which probably look like this: /blog/%posttitle%. Just remove the ‘/blog’ part, click save and you’ll probably find it’s … Read more

Author information on all pages

Found the answer myself: <?php $blogusers = get_users(‘include=2’); foreach ($blogusers as $user) { echo ‘<h3>Over ‘. $user->first_name .'</h3>’ . get_user_meta($user->ID, ‘description’, true) . ”; } ?>

How do I change the user via SQL?

You probably haven’t changed the display name, which is probably what is being displayed. “nicename” is used for the author’s posts page url and not for display. UPDATE wp_users SET display_name = replace(display_name, @old_user, @new_user);

Prevent author from editing comments from others in their post

Try use the following code in your themes functions.php // http://scribu.net/wordpress/prevent-blog-authors-from-editing-comments.html function restrict_comment_editing( $caps, $cap, $user_id, $args ) { if ( ‘edit_comment’ == $cap ) { $comment = get_comment( $args[0] ); if ( $comment->user_id != $user_id ) $caps[] = ‘moderate_comments’; } return $caps; } add_filter( ‘map_meta_cap’, ‘restrict_comment_editing’, 10, 4 );

Assign a category to all articles

If you can access the database directly, you could Check for the ID of the category you want to assign Check for the Author ID Then run the following MySql (on your own risk): INSERT INTO `#__term_relationships` ( object_id, term_taxonomy_id ) SELECT ID, 1 FROM `#__posts` WHERE `post_type` = ‘post’ // where 1 is your … Read more

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