• Resolved kmcminn

    (@kmcminn)


    Hello, everyone. This should be easy for many of you, but apparently I’m not doing it correctly. ??

    I’m trying to wrap “$manager[“user_title”]” inside “<h4 class=”authortitle”>” but can’t figure it out. Here’s what it looks like before I do anything to it.

    echo '<h4 class="authorname"><a href="'.$manager["user_archive_url"].'">'.$manager["first_name"].' '.$manager["last_name"].' </h4></a>, '.$manager["user_title"].'';

    If someone could help me, it would be greatly appreciated. Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Peter Booker

    (@peterbooker)

    Hi kmcminn,

    I believe what you are looking for is this:

    echo '<h4 class="authorname"><a href="'.$manager["user_archive_url"].'">'.$manager["first_name"].' '.$manager["last_name"].' </h4></a>, <h4 class="authortitle">'.$manager["user_title"].'</h4>';
    Thread Starter kmcminn

    (@kmcminn)

    Unbelievable how I missed something so simple.

    That’s exactly what i was looking for, Peter. Thank you, sir!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Div To PHP’ is closed to new replies.