Remove author in Facebook posts

Posted in: Newsmag
Post count: 136

Hi,

Am looking to remove the part where is says “BY TNTREPORT” when I share articles on Facebook as can be seen here:
http://www.tntreport.com/wp-content/uploads/2015/06/Facebook-posts-remove-author.jpg

I believe it’s pulling the author details?
Can you please help me get rid of this from showing up in articles?

Thanks in advance

Post count: 9544

You need to remove the OG “author” tag from your posts.
I think you can remove this from the header.php file.

Post count: 136

I already have and it’s still there.

Post count: 9544

You do have this in your source code, if you look at it?

<meta name="author" content="TNTreport">

You might need to edit the main functions file being pulled in for the head element as found in the header.php file for 1.71: note reference to hooked/included element:
@see td_wp_booster_functions::hook_wp_head

So, if you open that file:

line 1461
// show author meta tag on sigle pages
$td_post_author = get_the_author_meta('display_name', $post->post_author);
if ($td_post_author) {
echo '<meta name="author" content="'.$td_post_author.'">'."\n";
}
}

  • This reply was modified 11 years by simchris.
Post count: 136

Appreciate you are trying to help Chris, but the reason I pay money for these themes is for the developers to sort out any issues I have and that way I know I’m doing the right thing.
Thanks anyways.

To the theme developers.
Here’s the settings page with author name disabled:
http://www.tntreport.com/wp-content/uploads/2015/06/Screen-Shot-2015-06-02-at-11.39.11-am.jpg

What should I do?

Post count: 9544

Cool.. You can fix it right now with above fix.
Or perhaps tagdiv will have simpler solution.

Post count: 7909

Hi,

Thanks Chris!


@WakeUpCallProject
Please remove or comment this code – http://screencast.com/t/mloyHc2rVZ6e and fetch new scrape using debugger tool to see if this is applied – https://developers.facebook.com/tools/debug/og/object/

Thanks!

Post count: 136

Thanks guys that worked.

One last one, how do I make the site show as TNTREPORT.COM instead of http://WWW.TNTREPORT.COM on Facebook post shares?
http://www.tntreport.com/wp-content/uploads/2015/06/Facebook-posts-remove-author.jpg

Basically, how do I get it to show the site name without (WWW.) on Facebook shares?

Post count: 6600

Hi,

I’m not sure how that site’s address can be changed or if its possible. You site’s URL og meta tag is added to your page by Yoast’s SEO plugin so you could try to search online to see if it can be altered and for a way of changing it or if so.

Thanks

Post count: 9544

FYI
when you don’t have an author name it will typically show full URL.

Normally when you have a proper author tag for a story, it will truncate the URL.

So you would see:

mysite.xyzz | by Name Here

otherwise they often will do

http://mysite.zyzz

Likely a good idea to spend some time on the FB developer site and forums to see how they use the OG meta data you place in your head area, so you can ‘dial that in’ the way you want them to actually grab it, where possible.

Post count: 136

My other sites don’t have the author showing but remove the “www.”

See here:
https://www.facebook.com/hangthebankers
https://www.facebook.com/empoderasalud

Post count: 9544

So perhaps look at the META data for those sites vs the one with the issue and make sure they are identical.

Also note Facebook isn’t always consistent — the OG tags are “hints” — they don’t have to actually DO anything — you’re not paying them to do this stuff.

Their whole system went down the other day, and I’ve been having tons of problems with setting up promoted posts this week too.

In any case, best of luck in sorting that out — it’s a pain!

Post count: 6

Hi,

I deleted those lines but I get a syntax error”

Parse error: syntax error, unexpected end of file in /home/italiamia/italiamia.com/wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php on line 2143

// show author meta tag on sigle pages
$td_post_author = get_the_author_meta(‘display_name’, $post->post_author);
if ($td_post_author) {
echo ‘<meta name=”author” content=”‘.$td_post_author.'”>’.”\n”;
}
}

Post count: 6535

Hi

From what I can see you deleted a semicolon which shouldn’t be deleted. PHP includes conditions between semicolons and in indicated code you have one opened semicolon and two closed semicolons. Make sure you delete only the code which shows author’s meta, not other code.

Thanks!

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newsmag’ is closed to new topics and replies.