Support » Plugin: Author Meta for Facebook » No article:author echoed even when user fb profile field is filled

  • Resolved rderimay

    (@rderimay)


    The article:author meta is not echoed even when the user fb profile field is filled.
    Instead, the plugin choose to echo “author” and not “article:author”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK. Found the solution. Somehow, to $user-ID is null.

    Replaced :
    $profilefield = get_the_author_meta( ‘fbm_facebook_profile’, $user->ID);
    by:
    $author_id = get_post_field( ‘post_author’, get_queried_object_id() );
    $profilefield = get_the_author_meta( ‘fbm_facebook_profile’, $author_id);

    Plugin Author Nazakat Ali

    (@nazakatali32)

    Thanks rderimay
    I have updated my code and fixed this problem..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No article:author echoed even when user fb profile field is filled’ is closed to new replies.