maggiesadler
Forum Replies Created
-
I don’t have an answer to this issue yet, but I am also experiencing this exact issue. The only change I made was updating this plugin. I’ll let you know if I figure out a fix (aside from reverting to old version).
Forum: Plugins
In reply to: [Disable Gutenberg Blocks - Block Manager] Paragraph Unable to DisableUsing allowed_block_types allows you to disable the paragraph block.
Additionally, you should probably remove paragraph as an option in your plugin if you’re unable to support disabling it.
- This reply was modified 6 years, 9 months ago by maggiesadler.
Hi nr2012,
Thanks for the custom preview page link function. I tweaked that a little so it would direct the users to a
/preview/page with the the necessary post type, id, and nonce so I could grab that information in my vue component so I could render the correct information with the correct template and styles for the user.In case you still need help accessing your acf values, try adding this code to your
functions.phpfile.// add acf values to revisions rest api add_filter( 'rest_prepare_revision', function( $response, $post ) { $data = $response->get_data(); $data['acf'] = get_fields( $post->ID ); return rest_ensure_response( $data ); }, 10, 2 );Happy coding!