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
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.
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?
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!
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?
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
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.
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
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!
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”;
}
}
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!