Hello,
I’m sorry to hear that you’re facing issues with the meta tags displayed on your single post page after installing Rank Math. To remove the post published date, author name, and category names from your single post page, you can use the following code snippet:
add_filter('rank_math/opengraph/facebook/og_title', function ($content) {
if (is_singular('post')) {
$content = get_post_meta(get_the_ID(), 'custom_og_title', true); // Replace with your post meta.
return $content;
}
});
You can add this code snippet to your theme’s functions.php file. This will help in removing the meta tags that you mentioned from your single post page.
If you need further assistance or have any other questions, please feel free to ask.
Sources:
How to Remove Date Snippets from Search Results » Rank Math
How to Prevent Modified Date of Your Blog Posts from Being Updated » Rank Math
How to Disable All Rank Math Generated SEO Tags » Rank Math
How to Make Your Theme Rank Math Compatible » Rank Math
Removing Schema From Your Posts & Pages » Rank Math
the above code is not worked . please guide how to remove meta tags from single post page which are coming after installing this plugin . now the meta tags text is like below.
05-01-2024 by admin
Filed Under: categoryname
i want to remove above two meta tags only. please guide
Hello,
Can you please share a screenshot and the affected URL so we can come up with the correct code?
Looking forward to helping you.
some body please attend my ticket please .
url is : https://www.jobsedit.in/ntro-74-scientist-jobs-2024-online-apply-link-on-ntro-gov-in/
https://www.jobsedit.in/wp-content/uploads/2024/01/extrameta.png extra meta coming in post page
Here i am sharing the url and image i have indicated the extra meta i dont want with numbers 1 and 2 . please give me some solution
Hello,
Those tags aren’t coming from Rank Math.
Can you please confirm if deactivating Rank Math will remove those elements?
You may check using this handy troubleshooting guide: https://rankmath.com/kb/check-plugin-conflicts/
Only the site admin would know and your users won’t be affected by this troubleshooting.
Let us know how that goes. Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.