The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
25 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 ) { ...
1
vote
0answers
29 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 ...
0
votes
0answers
12 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 ...
2
votes
2answers
43 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 ...
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 ...
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
0answers
18 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
1answer
40 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 !
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
69 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
29 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
35 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
62 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. ...
1
vote
1answer
67 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 ...
0
votes
0answers
565 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
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
0answers
73 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
42 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.
5
votes
1answer
375 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 ...
0
votes
0answers
162 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 ...
5
votes
1answer
2k 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?
1
vote
0answers
67 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
75 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 ...
0
votes
2answers
118 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 ...
1
vote
0answers
34 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
1answer
39 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 ...
0
votes
0answers
65 views

Get latest post revision with wp-query

How can I retrieve the latest revision post using wp-query? I am trying to replicate the behaviour as when a user updates a published post and clicks on preview. So far I've tried editing wp-query ...
1
vote
0answers
92 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
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
644 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 ...
1
vote
2answers
110 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 ...
0
votes
2answers
111 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
128 views

Saving Taxonomies to Post Revisions

In a custom post type, I first got all the revisions using wp_get_post_revisions(). I looped through, and compared metadata and postdata to see the differences between the two. However, it seems ...
0
votes
1answer
39 views

Building WP Web App: Creating a Feed for post revisions

I'm building a project management web app using WordPress. I want to create a kind of "news feed" on the home page so that everyone can see what the latest posts added/edited were. I need this to ...
0
votes
1answer
135 views

Visual (non-HTML) display of post revisions

So you know when you click "show revisions" on a post and can choose to edit any of the recent drafts? I have a client, non tech-savvy, who is frustrated by how the revision previews display as HTML ...
2
votes
1answer
146 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 ...
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
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 ...
4
votes
1answer
114 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 ...
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 ...
2
votes
1answer
273 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
175 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 ...
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 ...
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 ...
0
votes
1answer
488 views

Saving Revision of post meta key/value on each update_post_meta event

I have some code that updates a meta-key's value by incrementing... $post_id = $wpdb->get_var( $query ); $meta = get_post_meta( $post_id, 'stuff', TRUE ); $meta++; ...
2
votes
1answer
279 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 ...
0
votes
2answers
474 views

How to reduce the number of revisions?

I some posts I have a lot of revisions, and I want only 2 revisions for each post. I found this plugin http://wordpress.org/extend/plugins/revision-control/ that able to set that in the future WP will ...
5
votes
2answers
176 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
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 ...
2
votes
1answer
678 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