• i have tried following css but it only removes date from the blog post not from SERP
    .entry-meta .byline, .entry-meta .cat-links { display: none; }
    .entry-meta .posted-on { display: none; }

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • When was the last time you submitted your page for indexing?

    Have you viewed how Googlebot will see your page? See the “View the rendered page” section here.

    https://support.google.com/webmasters/answer/9012289?hl=en

    Thread Starter zohaibkhan5

    (@zohaibkhan5)

    last updated by Google desktop bot 25/03/2020, there is no date for pages in SERP, this problem is only with posts all my post have date in google results snippet.
    i want to remove the function date published from inside the post code is it possible?

    • This reply was modified 4 years, 11 months ago by zohaibkhan5.

    Hi,

    Ya, you can probably run a filter if you want to remove dates. Or, whip-up CSS like you’ve tried. Let’s see what the moderators say–if they have a great hook for that. This is WordPress. You can filter just about anything. ??

    But, I think your bigger issue is Yoast. It’s setting your dateModified and datePublished meta just like a good little SEO plugin should do.

    
    <script
      type="application/ld+json"
      class="yoast-schema-graph yoast-schema-graph--main"
    >
      {
        "@context": "https://schema.org",
        "@graph": [
          {
            "@type": "WebSite",
            "@id": "https://testfellow.com/#website",
            "url": "https://testfellow.com/",
            "name": "testfellow",
            "inLanguage": "en-US",
            "description": "Online MCQs Test Preparation for Competitive Exams",
            "potentialAction": [
              {
                "@type": "SearchAction",
                "target": "https://testfellow.com/?s={search_term_string}",
                "query-input": "required name=search_term_string"
              }
            ]
          },
          {
            "@type": "WebPage",
            "@id": "https://testfellow.com/#webpage",
            "url": "https://testfellow.com/",
            "name": "Online MCQs Test Preparation for Competitive Exams like NTS,PPSC",
            "isPartOf": { "@id": "https://testfellow.com/#website" },
            "inLanguage": "en-US",
            "datePublished": "2018-10-13T11:20:13+00:00",
            "dateModified": "2020-03-25T13:34:13+00:00",
            "description": "testfellow.com is an online quiz website which contains solved MCQs questions for the preparation of competitive exams, or Jobs Test like NTS, PPSC, FPSC",
            "potentialAction": [
              { "@type": "ReadAction", "target": ["https://testfellow.com/"] }
            ]
          }
        ]
      }
    </script>
    <!-- / Yoast SEO plugin. -->
    
    

    Maybe turn Yoast off and remove all visible dates from all your posts? I think Googlebot is pretty smart. If it smells like a blog, it’s going to look for a date.

    https://searchengineland.com/google-explains-how-dates-within-search-results-snippets-work-313742

    Good luck!

    • This reply was modified 4 years, 11 months ago by mark l chaves. Reason: Reformatted code snippet

    Hi there,

    you can use the filter provided here to only display the Updated date if it is available:

    https://docs.generatepress.com/article/generate_post_date_output/#only-show-updated-date

    Thread Starter zohaibkhan5

    (@zohaibkhan5)

    i don’t want to show any date in SERP.

    Try this filter:

    add_filter( 'generate_post_date_output', function( $output, $time_string ) {
        return '';
    }, 10 , 2);

    This will remove the timestamp elements generated by the Theme.
    Note: this will not affect any meta that may be added by another plugin such as Yoast, it also may not prevent Google from displaying a date.

    Thread Starter zohaibkhan5

    (@zohaibkhan5)

    ok thanks, i will let u know if it worked

    You’re welcome

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘i want to remove post date showing in Google search results’ is closed to new replies.