-
This is my code in the function.php file of the WordPress theme. How do I change it because the author points to the meta profile instead of the archive author? The theme is “Divi” by Elegant Themes
PHP123456789101112if ( ! function_exists( 'et_get_the_author_posts_link' ) ) :function et_get_the_author_posts_link(){global $authordata, $themename;$link = sprintf('<a href="%1$s" title="%2$s" rel="author">%3$s</a>',esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ),esc_attr( sprintf( __( 'Posts by %s', $themename ), get_the_author() ) ),get_the_author());return apply_filters( 'the_author_posts_link', $link );}What’s the meta profile? and what’s instead of the archive author? Is this function part of userpro?
No this is the function of the theme in use that recalls the author of the post …
Ok, it’d be better to contact the theme author directly about it. as he must be knowing better about this stuff than me 🙂
PHP1234567891011121314151617181920212223if ( ! function_exists( 'et_postinfo_meta' ) ) :function et_postinfo_meta( $postinfo, $date_format, $comment_zero, $comment_one, $comment_more ){global $themename;$postinfo_meta = '';if ( in_array( 'author', $postinfo ) )$postinfo_meta .= ' ' . esc_html__('by',$themename) . ' ' . et_get_the_author_posts_link() . ' | ';if ( in_array( 'date', $postinfo ) )$postinfo_meta .= get_the_time( $date_format ) . ' | ';if ( in_array( 'categories', $postinfo ) )$postinfo_meta .= get_the_category_list(', ') . ' | ';if ( in_array( 'categories', $postinfo ) )$postinfo_meta .= get_the_term_list( $post->ID, 'genere', ' ', ', ', '' ) . ' | ';if ( in_array( 'comments', $postinfo ) )$postinfo_meta .= et_get_comments_popup_link( $comment_zero, $comment_one, $comment_more );echo $postinfo_meta;}here is the code that draws the columns to display in the meta post
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.