How to link to the current User/Author Profile page?

if i am guessing it right you need to use <?php the_author_posts_link(); ?> function to link to the author page Note: Remember the function will only be useful if you want to link to the author of a post not a particular user Source: http://codex.wordpress.org/Template_Tags/the_author_posts_link

How to link avatar and nickname to profile

This a short compilation of the multiple comments above, so that future visitors don’t have to read each and every one of them. First of all, the_author_posts_link() is a deprecated function since version 2.1, so get_author_posts_url() or the_author_posts_url() should be used instead http://codex.wordpress.org/Function_Reference/get_author_posts_url The the/get_author_posts_url() takes an argument that requires “ID of the author whose … Read more

Plugin for an author bio popup box?

Try the WordPress Author Pop-up plugin. This plugin does the same thing as the the_author tag, displays the author name, only this time it’s linked to hidden layer (div). By clicking on the author link the hidden layer(div) pop’s up with author info gathered from the profile page, plus gravatar photo (if author email is … Read more

Author bio Social Links

You need to check, if the field is empty or not before printing link using the get_the_author_meta function. <?php if(!empty(get_the_author_meta(‘twitter’))) { ?> <a href=”https://wordpress.stackexchange.com/questions/75981/<?php the_author_meta(“twitter’); ?>” title=”Twitter” target=”_blank” id=”twitter”><img src=”/images/twitter.png” alt=”Twitter” /></a> <?php } ?> or, try <?php if(!empty(get_user_meta(get_the_author_meta(‘ID’),’twitter’))) { ?> <a href=”https://wordpress.stackexchange.com/questions/75981/<?php the_author_meta(“twitter’); ?>” title=”Twitter” target=”_blank” id=”twitter”><img src=”/images/twitter.png” alt=”Twitter” /></a> <?php } ?> but, … Read more

Showing author’s page with no posts

You can use the get_queried_object where the CODEX says: if you’re on an author archive, it will return the author object So since you have an object, you can return it values: $author = get_queried_object(); echo $author->first_name . ‘ ‘ . $author->last_name; And you can use the same parameters as get_the_author_meta(): user_login user_pass user_nicename user_email … Read more

Send transactional email: first user’s post

You’re close – let’s take a look at this line: if( ‘post’ == $post->post_type && count_user_posts(the_author_meta(‘ID’) == 1); ) That semicolon is a syntax error, PHP will barf – let it go the_author_meta() prints data, it does not return anything – use get_the_author_meta() for comparisons and passing things around The post count comparison needs to … Read more

WP authors page

You can add the code below to your theme’s function.php or in your own custom plugin… function custom_author_slug() { global $wp_rewrite; $new_slug = ‘people’; $wp_rewrite->author_base = $new_slug; } add_action(‘init’, ‘custom_author_slug’); After you do it go to your admin then to Settings > Permalinks and click “Save Changes” which will trigger a flush of the WordPress … Read more

Output author and description if description is not empty

<?php $authordesc = get_the_author_meta( ‘description’ ); if ( ! empty ( $authordesc ) ) { ?> <a href=”https://wordpress.stackexchange.com/questions/11203/<?php echo get_author_posts_url( get_the_author_meta(“id’ ) ); ?>”><?php the_author(); ?></a> <?php echo wpautop( $authordesc ); }

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