• Hi.

    I have a site where contributors edit posts. However the data is fed in by contributors as custom fields. Then in the pending revision page the modified custom fields are not displayed, just the modified title and the modified content.

    That means even if my contributor has edited the custom fields and submitted the post for revision I can’t see them in the pending revision while comparing them.

    I’ve tried with “Custom Field Revision” plugin but it seems that it doesn’t work in last versions of WordPress. Do you know any other plugin for comparing custom fields as revision? Or any other solution?

    Thanks.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There may very will be a plugin, I’m not very current on available plugins.

    Lacking that, it appears to me the revision template (wp-admin/revision.php) uses AJAX to display the data, so you would need to do something similar.

    It’s somewhat straight forward, given the post ID of the revision, to make an AJAX call to get the relevant custom field content. I’m less sure how to get the current revision ID other than to tie into various control events and keep track of where the display is.

    The WP AJAX script obviously does this too, but I’m unsure how it works. If you can figure that out, you can get the current revision ID from the WP script instead of trying to keep track of it.

Viewing 1 replies (of 1 total)

The topic ‘Compare revisions (custom fields)’ is closed to new replies.