Questions tagged [revisions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Displaying a List of Changes / Updates on the Website Publicly

I was wondering if there was some way to display / track down the recent changes for the pages (and possibly posts). I mean, showing "admin updated "x" page Jan. 15, 2022 3pm". ...
user avatar
  • 1
0 votes
1 answer
44 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 ...
user avatar
0 votes
0 answers
8 views

how long do restored versions take to go live?

I just restored a page to a version from august of this year but I can see on the live site it's still there. I refreshed the page and cleared the cache however it is still showing on the live site. ...
user avatar
  • 101
0 votes
0 answers
9 views

Problem with revisions only returning four results

I have the following query running to grab post revisions to show specific data on the front-end to users... $postType = 'items'; $metaKey = 'price'; $query = " SELECT c.meta_value,...
user avatar
  • 1
0 votes
0 answers
26 views

Show Post Revisions on front-end

I have a particular need to show post revisions of a particular custom field (I used ACF) in a custom post type on the front end for users so they can see how the data has changed over time. Is there ...
user avatar
  • 1
0 votes
1 answer
18 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 ...
user avatar
  • 101
0 votes
1 answer
53 views

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

I want to fetch all post revisions for my posts.
user avatar
  • 39
0 votes
2 answers
93 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) ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
0 votes
1 answer
53 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');&...
user avatar
1 vote
1 answer
347 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://...
user avatar
  • 353
0 votes
1 answer
29 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?
user avatar
1 vote
2 answers
103 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 ...
user avatar
1 vote
0 answers
34 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/...
user avatar
  • 41
0 votes
3 answers
313 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?
user avatar
  • 135
1 vote
1 answer
140 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
user avatar
1 vote
1 answer
28 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 ...
user avatar
0 votes
1 answer
677 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. ...
user avatar
  • 149
0 votes
1 answer
269 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 ...
user avatar
  • 198
0 votes
1 answer
33 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
user avatar
  • 43
0 votes
1 answer
397 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'...
user avatar
  • 13
1 vote
1 answer
182 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 (...
user avatar
1 vote
1 answer
51 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 ...
user avatar
  • 123
1 vote
1 answer
288 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: $...
user avatar
  • 111
1 vote
0 answers
18 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 ...
user avatar
  • 11
1 vote
0 answers
353 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?
user avatar
0 votes
1 answer
412 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-...
user avatar
0 votes
1 answer
81 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)....
user avatar
  • 112
4 votes
1 answer
314 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 ...
user avatar
  • 615
0 votes
1 answer
44 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 (...
user avatar
  • 101
0 votes
1 answer
41 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 ...
user avatar
1 vote
1 answer
193 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 ...
user avatar
  • 23
0 votes
1 answer
63 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
91 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 ...
user avatar
  • 1
4 votes
0 answers
615 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 ...
user avatar
  • 140
2 votes
0 answers
406 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. ...
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. ...
user avatar
  • 131
2 votes
2 answers
136 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 ...
user avatar
  • 708
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.)
user avatar
1 vote
1 answer
1k 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 ...
user avatar
5 votes
4 answers
3k 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....
user avatar
1 vote
1 answer
44 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, ...
user avatar
  • 23
0 votes
0 answers
97 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 ...
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 ...
user avatar
  • 1,019
0 votes
1 answer
323 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
89 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 ...
user avatar
  • 63
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 ...
user avatar
1 vote
1 answer
179 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.) ...
user avatar
  • 163
1 vote
1 answer
9k 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 ...
user avatar
  • 113
0 votes
1 answer
535 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 ...
user avatar
  • 339