Sorry, you do not have permission to ask a question, You must login to ask a question.

Sorry, you do not have permission to ask a question.

brainchime.com

brainchime.com

brainchime.com Navigation

  • Home
  • About Us
  • Contact Us

Mobile menu

Close
  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

brainchime.com Latest Questions

Admin
Admin
Asked: October 6, 20242024-10-06T06:18:56+05:30 2024-10-06T06:18:56+05:30In: Wordpress

how can i update last modification date in yoast generated sitemap.xml on all post at once?

Hi, I have 500+ pages on my Q&A website example.com on WordPress and I have the Yoast premium plugin installed and Activated on my WordPress site. The Yoast plugin has generated the sitemap.xml file and where last modification date for almost all Questions and the post is old. Why I am mentioning this is that I am noticing a drop in SERP ranking of my questions post. Earlier the ranking for most of the posts was on 1st page and now it’s no more in the top 100. May be 100+ or unknown to me now.

I was researching it for quite some days and noticed that the Q&A theme Discy which is built into my website is generating QA schema on my website by itself for each question page which gets created when someone asks any questions on the site user interface. Now, the worst thing here is the Yoast premium plugin installed on my WordPress site is also generating the Webpage Article type schema as well for each page on my site making each page have two schemas one is Article type and another is QA type which is causing conflict and Google finds it hard to prioritize which schema. Therefore, I have disabled the article schema generated by Yoast on my site and kept the QA schema for each page. After this update, the All Questions page was left with only one schema which is the QA schema but since there is no update on the content side of any page, therefore, the last modification date is still not changed and shows the old date for pages on sitemap.xml.

I know that I can do this by manually editing and updating each question post either from the WordPress backend or my website user interface which is a tedious and repetitive task and I don’t want to do that on 500+ pages. I am not getting how can I update the last modification date in Yoast generated sitemap.xml on all posts at once?

php-my-admin
  • 0
  • 0
  • 11
  • 2
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

Related Questions

  • How to resolve Ads.txt Status Not Found error reported by Google adsense for the wordpress site?
  • How do I disallow specific page from robots.txt
  • Should I no index category and tag pages wordpress?
  • How to disbale Yoast schema output for Q&A website?
  • Robots.txt file not getting updated in WordPress site using Advanced Crawl optimization setting in Yoast premium
  • Duplicate meta descriptions multiple tag errors reported by Bing Webmaster on my wordpress site
  • what is the difference between the two files ?robots=1 and robots.txt?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Admin
    Admin
    2024-10-06T06:27:05+05:30Added an answer on October 6, 2024 at 6:27 am

    You can follow the below steps to update the last modification date for all posts, questions, and pages on your WordPress site sitemap.xml at once.

    Using SQL Query for bulk update:

    You can use SQL queries to update the post_modified and post_modified_gmt fields in the WordPress database.

    • Please back up your database before making any changes using SQL query.
    • Access your WordPress database from your hosting provider site using a tool like phpMyAdmin.
    • Run the following SQL query to update the modification date to the current date and time for all posts, pages, and questions on your site.
      UPDATE wp_posts
      SET post_modified = NOW(),
      post_modified_gmt = UTC_TIMESTAMP()
      WHERE post_type in ('post', 'page','question')
      AND post_status = 'publish';
      This SQL query updates the post_modified date, which Yoast uses to generate the tag in your sitemap.
      • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Sidebar

Statistics

  • Questions 143
  • Answers 177
  • Comments 0
  • Popular
  • Answers
  • Admin

    Why do we use OVERLAY keyword in data structure subfields ...

    • 12 Answers
  • Admin

    How to call sql stored procedure with output parameter from ...

    • 6 Answers
  • Admin

    How to use declare global temporary table statement in RPGLE?

    • 5 Answers
  • Admin
    Admin added an answer CPF4131 is a record format level check error. This indicates… October 18, 2024 at 1:58 am
  • Admin
    Admin added an answer To open the command prompt with administrator rights you can… October 17, 2024 at 12:27 am
  • Admin
    Admin added an answer In AS400, "AS" stands for Application system. This article discusses… October 13, 2024 at 12:49 pm

Related Questions

  • Admin

    How to resolve Ads.txt Status Not Found error reported by ...

    • 1 Answer
  • Admin

    How do I disallow specific page from robots.txt

    • 1 Answer
  • Admin

    Should I no index category and tag pages wordpress?

    • 0 Answers
  • Admin

    How to disbale Yoast schema output for Q&A website?

    • 2 Answers
  • Admin

    Robots.txt file not getting updated in WordPress site using Advanced ...

    • 1 Answer

Trending Tags

.htaccess (1) as400 (123) bing-webmaster (2) control-language (12) db2 (33) ftp (8) google-adsense (1) google-search-console (3) https-redirect (1) iasp (4) ifs (22) jar (4) operations (3) php-my-admin (1) qshell (3) robots.txt (4) rpg (26) stored-procedure (3) stroed procedure (1) triggers (1) yoast (4)

Explore

  • Home
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags

Footer

BrainChime

BrainChime is a blog that posts question-and-answer-based format articles on diverse topics and engages in discussions by allowing people to provide answers/comments without the need to register and log in.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • FAQs
  • Categories
  • Tags

© 2024 BrainChime. All Rights Reserved
by BrainChime.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.