Supreme Theme by GD is displaying UserID instead of Display Name

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #488867

    Nathaniel Maichel
    Expired Member
    Post count: 13

    From public_html/wp-content/themes/supreme-directory/inc/geodirectory-compatibility.php. The user name is being displayed to the public – something that I don’t want. Looks like it is in this code block

    if (!$preview) {
    $author_id = $post->post_author;
    $author_name = get_the_author_meta(‘display_name’, $author_id);
    $entry_author = get_avatar(get_the_author_meta(’email’, $author_id), 100);
    $author_link = get_author_posts_url($author_id);
    $post_type = $post->post_type;
    $post_tax = $post_type . “category”;
    $post_cats = $post->{$post_tax};
    } else {
    $author_name = get_the_author_meta(‘display_name’, $user_id);
    $entry_author = get_avatar(get_the_author_meta(’email’, $user_id), 100);
    $author_link = get_author_posts_url($user_id);
    $post_type = $post->listing_type;
    $post_tax = $post_type . “category”;
    $post_cats = isset($post->post_category) ? $post->post_category[$post_tax] : $post->{$post_tax};

    #488875

    Alex Rollin
    Moderator
    Post count: 27815

    You can change hide it with CSS or create a customization or simply switch to the other Details template called “Geodirectory” instead of Geodirectory Single so you can do the layout exactly as you like.

    https://wpgeodirectory.com/docs-v2/themes/supreme/#customize-single

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount