The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
4answers
1k views

How to delete post revisions?

I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions? By the way, I am using WPMU and have many blogs, so how to ...
6
votes
4answers
3k views

How to properly turn off REVISIONS and AUTOSAVE for whole site and optionally for a custom post type only

Is there a hook/function combination that can be added to my theme's functions.php to properly disable REVISIONS and AUTOSAVE for the entire wordpress installation? What about if just for a certain ...
5
votes
1answer
3k views

Enable revisions for custom post type

I have created a custom Post Type, and Registered it. Can someone help me how to enable revisions to Custom Post type?
5
votes
1answer
398 views

How to hook in and modify the new revisions UI (3.6+)?

Let's say I want to add some post_meta into the "new" revisions UI. I'm saving some meta on revisions only, and want to display it on this screen. Normally, I'd open up wp-admin/revisions.php look ...
5
votes
2answers
181 views

Per Post Type Revision Numbers

In wp-config.php you're able to change how WordPress deals with post revisions. Specifically you're able to turn them off or specify a max number of revisions. I'd like to be able to set a max number ...
4
votes
1answer
1k views

Post revisions don't save or show up only for custom post types

My website makes use of a number of custom post types as well as the traditional "posts" and "pages" types. For all "posts" and "pages" revisions show up as they should, with a history of edits ...
4
votes
1answer
117 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
4
votes
1answer
51 views

A Blog's changelog

I'm looking for a plugin that would keep track of a all the structural "changes" journal. For instance, the date+time of each wordpress upgrade, or plugin install/update/activation/desactivation or ...
3
votes
1answer
174 views

Define maximum number of revisions per post type?

How can I define the maximum number of revisions on a per-post type basis? For example posts have 3 max revisions where as pages have a max of 10.
3
votes
1answer
29 views

how to enable different number of revisions for different blogs when using WPMU?

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog ...
2
votes
1answer
287 views

Will removing revisions positively impact database performance?

As per this question over on DBA.SE, I'm having quite a few issues with database optimisation. I'm just wondering if removing/disabling revisions will positively impact my database usage? We don't ...
2
votes
1answer
276 views

Get the author of the latest revision

I would like to display the author (username) of the latest revision of a post from inside the loop. I tried get_the_author(), which echoes the username and $post->post_author(), which returns the ...
2
votes
1answer
182 views

Is it wise to delete post revisions and autosaves from database?

I'm just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space and apparently have no use after the post has ...
2
votes
2answers
2k views

Display revision if post status is pending

I'm trying to display the latest post revision if the page is "pending", by default the page displays a 404 if it is pending. But I want it to show the latest revision until the page is updated. The ...
2
votes
2answers
52 views

revert one revision of a post progmattically via code?

I would have thought a simple question but I can't find a function to do this in the WordPress API. I just want to revert to one previous revision as soon as a user updates a post. This would ...
2
votes
1answer
149 views

New Plugin: Post update pushes a copy as a revision

I've been working alot with editing of posts after they've been published. I know I can hit update on the post to just update it, but I want to have the journey of revisions available for users to ...
2
votes
1answer
711 views

wp-types - How to allow custom fields to be saved in the revision

I am using this plugin: http://wordpress.org/extend/plugins/types/ When I use the revision, it does not saves the custom fields data. Is there anyway to do it? Thanks
2
votes
1answer
100 views

How do I batch create revisions of all posts?

I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
1
vote
1answer
82 views

Are posts updated or built from revisions + autosaves?

When editing a post in the admin I see records being added to the database to document my changes (here is part of the hooks I'm logging): ... http://local.dev/151-autosave-v1/ clean_post_cache ...
1
vote
1answer
44 views

Revert multiple posts to an older revision?

Is there a way to revert many/all posts to the closest revision to a particular date, all at once? The specific use case I need it for is to remove all the spammy viagra links from the content on a ...
1
vote
2answers
114 views

Max Number of Post Versions Supported

We are running a news site based on WP 3.5.1. Some editors complain that the WYSIWYG editor on the post editing page is not working properly for some posts. The editing buttons are not shown. In some ...
1
vote
1answer
196 views

WordPress as a web app - always auto-save post and meta data

Is is possible to make WordPress auto-save revisiona more often and have the auto-save version always be the most recent version - Like the way google docs works. This would mean the update button is ...
1
vote
1answer
17 views

Cannot limit post revisions

I don't know why but I cannot limit post revisions even though I've added the code define( 'WP_POST_REVISIONS', 3 ); Is there anything wrong in adding the code to wp-config file? Here are images of ...
1
vote
1answer
42 views

Add last Revision of Post column on Admin Panel

How to add this column ( last revision of Post ) on All Posts Manager. I can't find discussion about this problem. Please help me or suggest me an idea. Thanks for all !
1
vote
0answers
42 views

Storing revisions of metadata for custom post type

Storing metadata for custom post types is easy, you just need to add an action for 'save_post' with your method that handles this. In which you have then something like the following for a field that ...
1
vote
0answers
30 views

How to add internal, revision comments to page updates

I'm not sure the proper WP parlance for this, but I'd like to add historical comments to submitted page updates for version control purposes or as a supplement to the Revisions Browser. (Something ...
1
vote
0answers
70 views

Front end URL to restore a post/page

I was wondering if a url exists where one can click on a link and would automatically populate in the edit post of the most current revision. ...
1
vote
0answers
77 views

Post author for revision not being set on update/insert

I'm trying to programmatically update a custom-type post with revisions enabled via form, and everything seems to be working fine except the post_author field for the revision is being set to 0 ...
1
vote
0answers
35 views

Schedule Page/CPT Revisions

I'm currently working on a wordpress installation that (ab-)uses wordpress Pages with extensive ammounts of custom fields to allow for simple handling of landingpages etc. Our users now asked for a ...
1
vote
0answers
94 views

Adding a cancel button to edit post screen

I'm actually quite surprised WP hasn't already implemented this. I want to add a Cancel button to the edit post screen which will do some cleanup when pressed. After a little playing while watching my ...
0
votes
2answers
1k views

Disable revisions for a specific post type only?

Any way to disable post revision on specific post types only?
0
votes
1answer
108 views

why there are so many posts whoes post_type is revision? will these records waste too much database space?

from the following data we may know there are only 30 records which are meaningful, and there are 92 records of revision post_type which can not be shown on the blog. so will these records waste too ...
0
votes
2answers
688 views

Safest way to bulk delete post revisions

One of my clients is on a rather large blog in terms of number of posts and traffic. I'm trying to get her database down to a manageable size, and one thing that's bulking up is literally tens of ...
0
votes
2answers
120 views

Public (Non-Admin) Post Edit/Revision History

Does anyone know of a way to provide an edit history for posts in production? That is, when people look at a post, they can see that it was modified and examine a list of changes like is possible with ...
0
votes
1answer
21 views

What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?

I have the following doubt related to the posts table of the WordPress database. I see that when I create a new post in this table are automatically created 2 new rows. 32 1 2014-08-16 15:07:22 ...
0
votes
1answer
1k views

How to remove in the wordpress database all posts revisions except the last three?

here is the commonly recommended sql command for removing posts revisions and cleaning up the wp database: DELETE a,b,c FROM `wp_posts` a LEFT JOIN `wp_term_relationships` b ON (a.ID = b.object_id) ...
0
votes
2answers
994 views

“Revision” records in wp_posts have original post type instead of “revision”

After seeing some weird hits in my Relevanssi search results I found the following: http://wordpress.org/support/topic/searching-with-relevanssi-shows-all-revisions I ran the following on my ...
0
votes
1answer
50 views

Why is wp_is_post_revision always false?

I am trying to save a revision of a custom post type. This is what I have to check if the post has a parent: function save_revision( $post ) { if ( $post['submitted'] == true ) { ...
0
votes
0answers
23 views

Display an old revision of a post in WP front-end theme, are there functions for this?

I have a custom post type that I've made change to a new custom post status value ("pending-change" I call it) when a change is made to any live "published" post. This works nicely and is a way for ...
0
votes
1answer
11 views

Disable revision access for a specific user role

I want to disable revision access for a specific user role. I saw the code posted here: Enable/disable post revisions programmatically but am worried that even with a clause to check the current ...
0
votes
0answers
19 views

Are featured images registered in the revisions?

Are the changes to featured images (add/change/delete) registered in the revisions? Otherwise there is a way to accomplish this?
0
votes
0answers
77 views

Why does uploading a media file a second time restore older version?

Sometimes I wish to update a media file, but when I Delete Permanently from the library, and then upload the same file a second time, instead of getting the revised version, I instead recover the ...
0
votes
0answers
31 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
0
votes
0answers
37 views

custom post types preview from post.php and new-post.php

I use wordpress 4.0 and I'm building a site with 2 custom post types: ptf and addendum. I modified ptf post type interface (post.php and new-post.php) and in this interface I added 2 addendum post ...
0
votes
1answer
68 views

How to Determine a Post's Last Edited Date?

I'm writing a little extract script to do a DB pull. I've been asked to get all restaurant posts (custom post type) that are among the 1000 top hit, OR have been added or edited in the last 3 years. ...
0
votes
0answers
630 views

Notice: Constant WP_POST_REVISIONS already defined

I made a local clone of a website that's running LIVE in order to safely work offline for a while. On every page of the local version I get a HUGE warning which says Notice: Constant ...
0
votes
0answers
78 views

High CPU usage after running WP-Optimize for the first time

I installed WP-Optimize and ran it one time. It found and removed over 1500 post revisions and some spam comments. Before this, 4 CPUs were very idle, below 10%. After running the scan, all 4 CPUs ...
0
votes
0answers
43 views

How is revision works internally?

I'm curious about wordpress revision feature. I want to implement this revision feature in my own php app. How is logic behind this revision feature? Thanks.
0
votes
0answers
172 views

Revision History for Entire Wordpress Site

I am learning wordpress and am working on a wordpress site where I would like to have a revision history for every single change I make. I understand you can see the revision history for pages and ...
0
votes
2answers
127 views

How to update the 'modified_time' of a post ONLY when content is changed?

For some reasons I show the Last Modified information to my users in the blog. Recently I have to clear up my categories and tags, but these actions will result in the update of 'Last Modified' field ...