Questions tagged [revisions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Elegantly prune post revisions

My post revisions are out of control. The issue is that I set the max number in wp-config too late, and some posts must have more than 30+ revisions, while others only have 1-2. I can prune them all, ...
Matt's user avatar
  • 163
3 votes
0 answers
82 views

How do I manage custom meta in post revisions in the Block Editor era?

Note to admins: I have been trawling every possible resource for this but cannot find a good answer for modern WordPress, so please don't mark this as a duplicate of ("insert some answer from ...
codewithfeeling's user avatar
0 votes
1 answer
247 views

Disable autosave with `function.php` for custom post wordpress?

I need disable auto save with function.php in wordpress. What should I do? Thanks
jamesnelson82's user avatar
0 votes
1 answer
148 views

Revision featured image

In WP revision i can not see if i upload featured image and update post. WP revision save just content, heading and excerpt. I have problem with some employs, they said that uploaded image and we do ...
Fabrika Novagodina's user avatar
0 votes
1 answer
49 views

Woocommerce altered my homepage, and I can't figure out how to revert it [closed]

(I'm not sure if this is specific to Woocommerce or not, since the solution may be a general Wordpress process.. if it is I will delete and move to the wordpress forum) I added Woocommerce to an ...
Totem's user avatar
  • 101
0 votes
1 answer
150 views

How to get post revisions in my custom rest API? [closed]

I want to fetch all post revisions for my posts.
Ricky's user avatar
  • 53
0 votes
2 answers
272 views

Display post changelog in post

I need to show history of post changes (post revisions) at the end of post content. I saw tips about "Last modified by/date" feature but I need to show the table of all changes (revisions) ...
Mateusz Graczyk's user avatar
1 vote
0 answers
183 views

Getting post revision and printing them on the post content site

I trying to print older post revisions on the content.php site (theme: twentytwenty), and this, with staticly set value works.. $query = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}posts ...
Obchod Hraček's user avatar
0 votes
1 answer
150 views

How can I change the date format of the revision list?

The date format looks like this "$ datef = _x ('F j, Y @ H: i: s', 'revision date format');" but I want it to be like this "$ datef = _x ('Y-m-d @ H: i: s', 'revision date format');&...
Juan Sebastian Usuga Agudelo's user avatar
2 votes
1 answer
900 views

Show history of post revisions on front end

I'm working on an internal knowledgebase and I want to show the post history on the front end (with something like author, date and difference). I first landed on wp_get_post_revision() (https://...
Derek's user avatar
  • 373
0 votes
1 answer
72 views

Delete post revisions only for a single post

How to delete post revisions only for a specific post identified by its ID using an SQL query?
programings's user avatar
1 vote
2 answers
306 views

How to list the authors of all revisions?

Some wordpress post has many revisions, and I know how to list all revisions,use code:wp_list_post_revisions( int|WP_Post $post_id, string $type = 'all' )。 However, How to list only the authors of ...
老鹰之歌's user avatar
1 vote
0 answers
152 views

WP Storing postmeta into revisions

I've made it possible to store some standard meta fields into a custom post type revision with the help if this great article: http://carolandrews.co.uk/saving-revisions-for-custom-post-type-meta-data/...
HHGK's user avatar
  • 39
0 votes
3 answers
1k views

How can I purge all post revisions except the latest 5?

I know I can use define('WP_POST_REVISIONS', 5); to limit future post revisions to 5, but how would I go about purging all existing revisions except the latest 5?
Jonny's user avatar
  • 135
1 vote
1 answer
262 views

How can i disable auto save & revisions with `function.php` in wordpress?

I need disable auto save & revisions with function.php in wordpress. What should I do? thanks
nasour naghipour's user avatar
1 vote
1 answer
30 views

Will revisions be retained when converting to a multi-site?

Will revisions be retained when converting to a multi-site? We’re looking to convert a WordPress site to a multi-site, and the client we’re working with is very conscious that they don’t want to lose ...
Francesco Fabbro's user avatar
0 votes
1 answer
1k views

Getting 401 unauthenticated error in WP Rest API revisions

I'm trying to fetch preview data through WP Rest API using a url such as /wp-json/wp/v2/pages/1140/revisions/1653. An extra header is also included: 'X-WP-Nonce': <nonce> - nonce comes from WP. ...
haxpanel's user avatar
  • 157
0 votes
1 answer
331 views

How to get the revisions feature back on the classic editor?

Any of the recent Wordpress updates have removed the revision option from the classic editor. It runs in the background and saves the regions but no way to access it on the classic editor. Gutenburg ...
Bikram's user avatar
  • 338
0 votes
1 answer
42 views

Revisions function ¿disabled?

In which version of wordpress was it implemented that the revisions to the posts will be saved. I need a version without that function or disable it- thanks
Oox's user avatar
  • 43
0 votes
1 answer
1k views

How would I see which wordpress posts have a revision history without opening each one?

I have about 3000 CPT records with ACF data that were updated incorrectly by WP All Import. Is there a way to see a list of posts with revision histories? I have already exported the database, but can'...
Andrew's user avatar
  • 13
1 vote
1 answer
327 views

Is it possible to publish multiple versions of a single post?

I'm assessing WordPress for a short story blog. The blog is to chart my journey as a writer. To this end, I'm looking to post a short story and then, perhaps months/years later, post a revision that (...
KC Teigh's user avatar
1 vote
0 answers
66 views

Only keep the First and Last Revision of a post

I've got a custom post type where the posts often undergo several minor revisions. Saving all the revisions is unnecessary and seems wasteful to keep so many useless DB entries. But I do need to ...
brandonjp's user avatar
  • 131
1 vote
1 answer
528 views

How do I get the intended post type of a revision post?

I have a headless Wordpress instance with multiple custom post types. The build takes a few minutes, so I'm building a way to display drafts by fetching the latest revision via an API, like so: $...
max's user avatar
  • 111
1 vote
0 answers
27 views

How to hide html tags on revision comparison pages?

I can see the html tags on post revision comparision page by default. Is there any filter or other method which will be helpful if I want to hide those html tags? I just want to use this comparision ...
Nhsybd's user avatar
  • 11
1 vote
0 answers
448 views

Preview previous revision without restoring it

I need to restore the website to an old revision but not sure which one. How do I preview old revisions without restoring until I am sure it is the right one?
Baruch Barness's user avatar
0 votes
1 answer
481 views

Expose Gutenberg blocks in Post Revisions API endpoint

I am working on a WordPress project with a headless front end, and am looking for a way to expose the individual post blocks when hitting the revisions endpoint. https://developer.wordpress.org/rest-...
Anton Emery's user avatar
0 votes
1 answer
161 views

Browsing Revisions in Custom Post Types takes me Empty Post Listing

I have created a custom theme and everything works fine except for the same erratic behaviour when I would like to browse the revisions of any of my content types (pages and posts revisions work fine)....
csaborio's user avatar
  • 112
4 votes
1 answer
413 views

Is it possible to select against a post's parent's fields with WP_Query?

I'd like to query post revisions using WP_Query for display on an admin page, and I want to include pagination parameters. I have two constraints: I would like to only retrieve revisions for ...
Sean's user avatar
  • 647
0 votes
1 answer
59 views

Compare first and last post revision

I would like to know if I'm the only one who wishes to compare first and last post revision or better compare and two arbitrary revisions. Even best would be being able to compare text in visual (...
lrkwz's user avatar
  • 101
0 votes
1 answer
91 views

Is there a way to determine which user changed a custom field (and when)?

A custom field on posts in my Wordpress installation stores an image URL. I need to know when this custom field was updated, and by which user, for a particular post. I know this data is not stored ...
Edmund Heaphy's user avatar
1 vote
1 answer
320 views

Define a wordpress constant through plugin functions?

I'm working on a plugin and trying to build in an option to disable post revisions. I have the setting registered, and confirmed that the checkbox is linking to the database. The option value is ...
Nexus6's user avatar
  • 23
0 votes
1 answer
88 views

Too many revision when post status is changes [duplicate]

When ever i update the custom post type it generates too many revision which crashed the website. ( memory exceeded) How can i debug this issue? Update : I was able to find the culprit. Will it be ...
user avatar
0 votes
0 answers
163 views

is there a way to see all changes been done on a wordpress site?

I was asked to overtake a website created by wordpress.org. The former IT did not do anything on the website since 2015 and I got asked to prove it. I can see the revisions but my boss wants it to be ...
Ulya's user avatar
  • 1
5 votes
0 answers
852 views

Exporting revisions

How do you export revisions for posts? I cloned a site with it's complete Wordpress DB 4 months ago. After the clone revisions have been made to the existing posts and new posts has been added to ...
lowkey's user avatar
  • 150
2 votes
0 answers
546 views

Support auto-save and revisions for custom fields

I recently read this tutorial about custom fields in WordPress and wrote a simple plug-in to provide a metabox with a set of input fields. I do not use the Meta Box plug-in promoted on the web site. ...
user1438038's user avatar
3 votes
2 answers
2k views

Enabled Revisions to existing custom post type not working Wordpress

I am trying to enable revisions for an existing custom post type. As the post type was already created about 2 years ago so where the post type was register I added revisions to the supports array. ...
Thomas's user avatar
  • 131
2 votes
2 answers
175 views

How can we publish revisions of a post, in addition to showing the latest post?

With the latest version of WordPress, how can we publish revisions of a post, in addition to showing the latest post? I want my front end users to see multiple versions of the same post. The same ...
klewis's user avatar
  • 835
1 vote
1 answer
4k views

Revisions deos not work on the new update of wordpress 2018 ( WordPress 4.9.5.) .Went to Screen Options but does not appear

iaccidentally deleted some of my content then published it. Now my layout is all messed up . but cant find the revisions option on new update ( WordPress 4.9.5.)
Taffy Bwakura's user avatar
1 vote
1 answer
2k views

How to enable the view of revisions of post in Wordpress Api for custom post type?

{ "code": "rest_cannot_read", "message": "Sorry, you are not allowed to view revisions of this post.", "data": { "status": 401 } } /wp-json/wp/v2/posts/"ID"/revisions (Im using this ...
Ron Ogrimen's user avatar
5 votes
5 answers
4k views

Do multiple revisions really slow down WordPress?

I have read numerous times that I should clean up my database to keep performance high. Keeping multiple revisions of posts is always cited as a big performance stealer. I'm suspicious of this claim....
John Biddle's user avatar
1 vote
1 answer
57 views

Enable post revisions for a specific post

I was wondering if there is a way to override a FALSE wp_post_revisions configuration, by excluding specific posts upon user action, and have the database store revisions for those only. Any ideas, ...
jeejee's user avatar
  • 23
0 votes
0 answers
110 views

How to edit posts/pages without making the change live?

We have a situation here at work I've never run into in many years of working with Wordpress. In the past, it's been acceptable to edit a post or page, click update, and make the changes live on the ...
Steve's user avatar
  • 293
1 vote
1 answer
1k views

Post revisions disappeared (for some posts)

I have noticed today that I don't see post revisions anymore, and I don't see it for all posts, custom posts, pages... null. I've checked all possibilities that I knew: WP_POST_REVISIONS turning ...
Picard's user avatar
  • 1,095
0 votes
1 answer
384 views

Clean up customize_changeset in DB

Is there something similar to define( 'WP_POST_REVISIONS', 0 ); for customize_changeset type so they're not collected in DB.
user avatar
2 votes
1 answer
93 views

Allow a non-author to see revisions of a post

I have a specific workflow of authoring in my website. An author publishes a new post, then an automatic version with another language is generated and assigned to another user (translator). I want ...
AFA Med's user avatar
  • 163
4 votes
1 answer
1k views

Autosave control in WordPress

I've been trying to find a filter or settings in WordPress to control the Autosave behavior, preferably by post type. When querying the database, I see our auto-drafts only go back one week, is there ...
Robert Fitzpatrick's user avatar
1 vote
1 answer
191 views

Page edit auto-creates blank revision and editor

I'm in the process of migrating an existing WP site to Cloudways and every time I try to edit a page the editor is blank and there's a brand new blank revision auto-saved. (Thankfully not published.) ...
Squish's user avatar
  • 173
1 vote
1 answer
10k views

Manually removing revision post types

I'm trying to clean and optimize my WordPress database, and I'm wondering if it's safe to write a MySQL script that would purge/delete all revision post types from the wp_posts table and run it ...
Mike's user avatar
  • 113
0 votes
1 answer
581 views

Wordpress doesn't save a post revision when changing CMB2 custom fields

I use CMB2 to add some custom fields to my posts. If i change the values of those custom fields and update the post, it doesn't create a new revision. a new revision is created only when i change the ...
Ben's user avatar
  • 349
0 votes
1 answer
65 views

How can I make revisions more extensive?

First I must apologize as I am only using WordPress out of necessity and so may not be very well versed in the proper terminology. I have a site where WordPress serves mainly as a CMS for a pair of ...
Aubergine's user avatar
  • 101