WooCommerce get_author_posts_url() – Author URL redirecting to shop base

I found! https://wordpress.org/support/topic/how-to-add-author-page-to-custom-user-role/#post-8807168 So in WooCommerce, this is achieved by the following code in wp-content/plugins/woocommerce/includes/wc-user-functions.php: /** * Disable author archives for customers. * * @since 2.5.0 */ function wc_disable_author_archives_for_customers() { global $wp_query, $author; if ( is_author() ) { $user = get_user_by( ‘id’, $author ); if ( isset( $user->roles[0] ) && ‘customer’ === $user->roles[0] ) { … Read more

Get 404 when try open author page

Your example would be accurate if we were talking about a post type, but authors behave a little differently. WordPress automatically creates specific author pages (like your /author-1 example) but does not have a fallback scenario for showing a list of the authors. (More details on how the template hierarchy works can be found here) … Read more

Adding Author Box Meta Links with Co-Authors

These are outside of the foreach loop: $twitter = get_the_author_meta(‘twitter’, $author_id); $facebook = get_the_author_meta(‘facebook’, $author_id); $googleplus = get_the_author_meta(‘googleplus’, $author_id); $linkedin = get_the_author_meta(‘linkedin’, $author_id); $instagram = get_the_author_meta(‘instagram’, $author_id); $youtube = get_the_author_meta(‘youtube’, $author_id); $email = get_the_author_meta(’email’, $author_id); So (remove that, and) try using $coauthor->ID with get_the_author_meta() like this: <div class=”author-box-social-icons”> <?php if( $email = get_the_author_meta( ’email’, $coauthor->ID … Read more

Can I Include author login in post class?

Yes, you can do it pretty easily using get_the_author_meta function and post_class filter: function add_author_nicename_to_post_class( $classes, $class, $post_id ) { $classes[] = get_the_author_meta( ‘user_nicename’ ); return $classes; } add_filter( ‘post_class’, ‘add_author_nicename_to_post_class’, 10, 3 );

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