Skip Navigation

[Resolved] Custom field revisions

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client has post revisions set up on their site. Comparing revisions, only the title and body are shown, no custom fields.

Solution:
WordPress doesn't support custom fields in post revisions, although there is a proposal to add it (with solution added in a plugin): https://github.com/adamsilverstein/wp-post-meta-revisions

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by johnR-22 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#902795

Im currently using Toolset to create a site that showcases motor vehicles and as part of my custom post types (vehicles) Im including additional information such as engine, transmission, suspension and so forth.

Contributors can edit vehicle listings and once they do, the post automatically goes to a status of “pending” until either discarded or approved by admin.

My problem is, on the revision page, I can only see changes made to the title and the main body content – nothing else.

So if they change the engine specs, I have no way of knowing whats been changed.

How can I achieve this?

Thank you.

#902813

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi John

If you are using post revisions to compare the before and after, well, WordPress doesn't support revisions of post meta, hence it is not something included with Toolset.

It is possible to get this to work, but you would be setting up such a system yourself.

There is a good description of what's required here: hidden link

If you know a little PHP it should be possible to implement something like this for your site.

If you don't then you would need to contact a developer to do it for you (we maintain a list of Toolset contractors that you can find in the sidebar, though this is not a Toolset issue as such).

Also, there is a plugin which aims to provide this functionality, though I don't believe it ever got accepted into core: hidden link

I haven't tested it but it might be all you need.

#902818

Thanks Nigel,
That's a real shame. I've just spent several hours trying to find a solution to this, and you've just confirmed my suspicion.

I may be able to have someone have a look at this for me, so Ill take that into consideration.

You can close this ticket mate.

Cheers