• Resolved posthawk

    (@posthawk)


    this is in the sidebar.

    `<?php
    $facebook = get_the_author_meta( ‘facebook’ );
    if ($facebook)

    <a style="margin: 0px 25px" title="<?php the_author_meta( 'display_name' ); ?>’s Website" alt="Author Webite Link"<a href="<?php the_author_meta( 'user_url' ); ?>"><?php echo get_avatar( get_the_author_meta('ID'), 150); ?></a></a>;

    ?>`

    i know the middle works by itself (whithout the href) but it wont work with the if statement and i dont know why because this works

    <?php
    $facebook = get_the_author_meta( ‘facebook’ );
    if ($facebook)

    echo “test”

    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why wont this code display?’ is closed to new replies.