link to author's page in $output
-
I’d like to link to the author of a post’s archive page using the following code. I know I’m close, but I’m stumped.
if($_opts['show_meta'] == 'true') { $userid = $child->post_author; $userdata = get_userdata($userid); $output .= "<div class='blog-info blog-date'>"; $output .= "<i class='fa fa-clock-o'></i>"; $output .= mysql2date('F j, Y',$child->post_date); $output .= "</div>"; $output .="<a href='.$authorURL$user->ID.'>"; $output .="<div class='blog-info blog-author'>"; $output .= "<i class='fa fa-user'></i>"; $output .= $userdata->display_name; $output .= "</div>"; $output .= "</a>"; $output .= "<div style='clear:both;'></div>"; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘link to author's page in $output’ is closed to new replies.