Disable Meta Tag Author from posts

Posted in: Newspaper
Post count: 11

Hi,

I’m having troubles with Pinterest when they scrape the metatags/opengraph

It seems that there are problems with this tag:
<meta name=”author” content=”XXXXX”>
It appears next to “og:image”, that is also duplicated since I’m using another plugin for these opengraphs.

Is there a way to disable these from the theme panel?

Thanks

Post count: 22421

Hello,

Form the theme panel, no. You can remove the og image from here: http://screencast.com/t/K0vUhy7fC
As for the author, if you want to remove it, you can do so from the theme panel but it will also remove the author from the posts: http://screencast.com/t/sxsboIWKr1h

Thank you!

Post count: 11

I’ve disabled the author name from the theme panel but it keeps appearing on the html code:
http://ninjacosmico.com/6-space-buns-try-summer/

Post count: 11

I’ve tried erasing these lines from the php file you shown:

// facebook sharing fix for videos, we add the custom meta data
if (has_post_thumbnail($post->ID)) {
$td_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
if (!empty($td_image[0])) {
echo '<meta property="og:image" content="' . $td_image[0] . '" />';
}
}

// 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";
}
}

But when I did that, the site stopped working.

Post count: 11

I’ve managed to erase the show author meta tag and OG image but when I purge the Cache, go to Pinterest URL Debugger and scrap the new data, it shows the author’s name as the name of the article.

I know it’s the theme since I’ve switched to another that I already had and Pinterest managed to grab the rich pins data correctly.

You can see it for yourself here:
https://developers.pinterest.com/tools/url-debugger/

Use this URL: http://ninjacosmico.com/6-space-buns-try-summer/

Post count: 18

Hi TagDiv Support,
Can you please resolve this problem fast. I am also having this issue. Pinterest rich pin is showing “article author” as post title.

I tried switching the theme and the problem got resolved. So the problem is in newspaper theme.

I also tried deleting the code you suggested, and it got deleted in source code but in pinterest it is still the same.

Post count: 22421

Hello,

Sorry but we have not tested the rich pins on our site. We only provide the pinterest sharing option but not rich pins and we cannot know what they grab and what they don’t it is an implementation that is not tested so i cannot provide any solution for it. Maybe your other theme had rich pins already implemented. Maybe you can use a plugin for rich pins that provides the proper implementation.

Here is a related topic with a possible solution:
https://forum.tagdiv.com/topic/pinterest-sharing-issue/

Thank you!

Post count: 18

Hi,
Thanks for quick reply. I am already using yoast SEO to insert OG tags. But the problem is that pinterest seems to have started using schema tags instead of OG tags.

I looked through the source code and found this code

itemprop=”name” content=”admin”

Is this code okey? Don’t you think there should be Post Title in content=”admin” instead. I don’t have much knowledge of schema so I am not sure.

My problem is that pinterest rich pin is displaying everything right (discription, date publish, etc), but instead of post title there is “admin” in all pins.

I am quite frustated with this issue because our site gets most of its traffic from pinterest.

Post count: 11

The other theme has no rich pins implemented.
My other plugins are not conflicting with Pinterest, I’ve already tried by disabling them.
It’s the theme that is conflicting with the scraping of the rich pins

Post count: 22421

Well did you read the topic I posted above?
The user found a solution:

The solution is simple, you must edit td_block.php and remove the itemprop attributes and add open graph to your article page. You can do that manually by addning the meta to your header or just install a plugin that does that for you.

Our theme seems to be missing some of the metadada or schema information required by the rich pins, but we did not create our theme with rich pins in mind. We did not specify anywhere that rich pins work with our theme. We did not test these. You will have to add some manual implementation or plugin meta data as @vexx mentions here: https://forum.tagdiv.com/topic/pinterest-sharing-issue/

I do not know of any solution for this. you will have to read the docs for the rich pins and see what they actually require and either add the meta yourself or use a plugin that does that for you.

Thank you for your understanding

Post count: 18

Hi freddre & Bogdan B.,

After hours of work, I finally found the solution of this problem. Now my rich pins appearing with the right tile.

Here is what I did:

1. It edited “td_module_single_base.php” and commented out the lines highlighted in the screenshot. http://screencast.com/t/1iMjU8uIlb

2. Then again from “td_module_single_base.php” comment out — $buffy .= ‘<span style=”display: none;” itemprop=”author” itemscope itemtype=”https://schema.org/Person”>&#8217; ;
$buffy .= ‘<meta itemprop=”name” content=”‘ . esc_attr(get_the_author_meta(‘display_name’, $this->post->post_author)) . ‘”>’ ;
$buffy .= ‘</span>’ ;

It is under “// author”

3. Then edit the post template you are using (you can find it out from WP dashboard>Theme Panel>Post Settings>Default Post Template) and comment out lines in this screenshot. http://screencast.com/t/VmU3nSLGkpR

4. Now open “td_wp_booster_functions.php” in comment out lines in this screenshot. http://screencast.com/t/1iMjU8uIlb

After doing all this my Pins are now appearing fine. Follow this only on your own risk. And be sure that you are using latest version of theme and yoast SEO. Also backup up your current theme just in case.

Post count: 11

Hey, the first screenshot is the same as the “td_wp_booster_functions.php” one.

I’ve scrapped the rich pins but now it doesn’t even show any title

Post count: 18

Sorry for the mistake. Here is the correct screenshot — http://screencast.com/t/jAsS6hlgEXr

As for the title disappearing, it happened to my site as well but after you complete the whole process, use yoast SEO and clear up the cache from caching plugin it should start to show again.

Post count: 18

Will you mind sharing the site name so that I can check out?

Post count: 17

Thanks Listsy for the solution. I hope I can implement it with no problems.

My rich pins were working fine until a few days ago, when my name started to appear as the title on half of my rich pins.

It’s a shame that the developers won’t be looking into this, because I’ve come across other people having the same problem, and since Pinterest is a huge traffic source for many bloggers, this will have a huge impact on visitor numbers (I already saw a decrease in visitors).

Post count: 11

Yes, they should look at this problem and fix it.
Pinterest is very important for my site.
I haven’t tried yet the solution by listsy since I cannot mess with the code of the site until early morning, due to the visitors on my site.

Every time a visitor pins an image from my site, the rich pins data gets wrong on pinterest.
I have to manually switch to another theme and rescrap each article that are affected by the bug from Newspaper.
It’s time consuming and it’s a loss of revenue for me.

I really hope that they take a look at this with one of their test sites and with Pinterest’s URL Debugger.

  • This reply was modified 9 years by freddre.
Post count: 22421

Hello,

If the rich pins worked up until now, it is probably because Pinterest changed their api. This happens a lot of times with social networks but we never advertised rich pins to work with our theme. They worked out of the bat and now they don’t but we never implemented anything special in this regard and we never said we did. We cannot be held responsible for something that we did not test and recommend with our theme or advertise as working and recommended. Please understand that we can only guarantee the features we create and adjust on every update of our theme. External untested features such as the rich pins are not part of the theme. What I can do is add it as a suggestion for future updates so they become part of the theme implementation as code will have to be added to our theme in order for them to work and the code needs to be adapted when Pinterest decides to change their code as it’s the case with all of the networks in our social counter.
You can try the method posted by @listsy as it seems to work for him and it will probably work for you as well.
I will add this feature request to our list and hopefully our developer team will decide on adding the proper schema info and og image required by Pinterest.

Thank you for your understanding.

Post count: 17

Hi @listsy

I followed all your steps, but my Rich Pin titles still show my name instead of the title šŸ™
I’m more than happy to hire you to help me fix this issue!

Post count: 16

Adding support to fix this issue! We have noticed that the title of the Rich Pins are now showing as the author rather than the actual “title” of the post.

Post count: 9544

As FYI, rich pins still work with Newsmag theme without issues.

Note also that Pinterest started to have some glitches capturing pin data the first week of October, which seems to be sorting itself out now.

They were getting the image but not the headline, but issue with Pinterest and not theme.

I know you’re using Newspaper; this is just some feedback that Pinterest working fine with Newsmag on other side of the room šŸ™‚

Post count: 18

Hi Liz, Did you check the source code? Are these lines are still on the source code after you follow the procedure.

itemprop=ā€nameā€ content=ā€adminā€ in the bottom lines

&

<meta name=”author” content=”your author name”>

Here are few more suggestions-

1. Try to disable all plugins and expect yoast SEO and try to rescrape.

2. If you are using caching plugin and CDN, purge both and rescrape.

3. Check to make sure og tags are getting inserted correctly.

Please note that in my site, the author name is not shown anywhere and it is turned off from theme panel.

I won’t be able to do it for you but if you can tell the site name I can check it out for you.

Hey @freddre did it worked for you?

Post count: 18

As Pinterest is always changing, it seems like Pinterest has started using schema instead of og and there are some improper schema markings in the theme. Although I am not saying that developers should include support for rich pins but they should check if the schema markings are correct as they are also important for Google search.

Post count: 17

Hi @listsy

Thanks for the reply!

Those two lines don’t show up in the source code. (only: itemprop=”name” content=”Non Stop Destination” which is my site name).
I also haven’t removed my author box on the site, since I’d like to keep it there.
I purged the caching plugin, but not the CDN, so maybe that’s why it didn’t work?

I just checked Pinterest again, and some of my pins are now showing the title again. Instead of half of the pins showing my name, it’s now around 1/3rd.

If you’d still like to take a look, one of my articles showing my name is this one:
http://www.nonstopdestination.com/summer-wanderings-on-grouse-mountain/

Thanks!

Post count: 18

Hi @Liz, I check out few of your URLs (including the one you posted) and all are showing perfectly on Rich Pin Validator. Just be sure to purge your CDN and those remaining pins will start to show post title automatically as they get rescraped by Pinterest.

By the way, your website is quite appealing.

Post count: 2

Hi @listsy,

So glad to finally have found a possible solution to this annoying problem.
Suddenly all my rich pins got that infamous ‘name’ instead of a ‘title’ that they used to have.

One thing I want to ask is:
Do I have to update these php files again after every update version of Newspaper?

Thanks

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