
-
AuthorPosts
-
August 8, 2014 at 4:31 pm #301700
When using Revisionary plug in along with the Avia Advanced Layout Builder, my Revisionary pending revision page displays only a bunch of text after “save as pending revision” is selected , such as:
[av_one_half]
[av_textblock ]
Click here to add your own textThe only way to view it correctly is to go ahead and publish the revision, which defeats the purpose of have revisions available. If I use the default editor I don’t have this problem. Any thoughts on how to fix this?
August 8, 2014 at 5:40 pm #301750Hi lomadad!
No, unfortunately we’re not familiar with the Revisionary plug in and we can’t support it. The template builder supports the default wordpress revision feature though. We use following code (located in wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php ) to restore the default wordpress revisions:
function avia_builder_restore_revision( $post_id, $revision_id ) { //$post = get_post($post_id); $revision = get_post($revision_id); $meta_fields = array('_aviaLayoutBuilderCleanData', '_avia_builder_shortcode_tree'); foreach($meta_fields as $meta_field) { $builder_meta_data = get_metadata( 'post', $revision->ID, $meta_field, true ); if (!empty($builder_meta_data)) { update_post_meta($post_id, $meta_field, $builder_meta_data); } else { delete_post_meta($post_id, $meta_field); } } }
– maybe it gives you a starting point…
Best regards,
PeterAugust 8, 2014 at 6:41 pm #301775Peter,
Thanks for the response. What I need is for a pending revision to be published and then REPLACE THE PREVIOUS VERSION. Will the default wordpress revision feature accomplish this?August 10, 2014 at 4:26 am #302129Hello,
I don’t think that’s possible with the default WP Revision functionality. In any case -as Peter said- this is already out of our support scope. I’d suggest either contacting the plugin author or a developer to help you adapt Revisionary to Enfold.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.