‘Preview Changes’ for custom meta boxes?

How can I have the ‘Preview Changes’ working for custom meta boxes? For instance, I just want to test/ preview some text in a custom meta box but I don’t want to save/ update because that post/ page is already gone live.


    $post_id = $post->ID;

    $meta = get_post_meta( get_the_ID(), 'meta_tile1_text', TRUE );
    <p><?php echo $meta;?> </p>

This only works when I click ‘Update’ button in the backend. But it does not when I click ‘Preview Changes’. I have to save the ‘preview’ text in order to see it.

Is it possible?

Read more here: ‘Preview Changes’ for custom meta boxes?

Leave a Reply

Your email address will not be published. Required fields are marked *