Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1010757

    Hi,

    I want to add revisions to my custom post type. How can I do this? Avia is already working with my cpt, but revisions are missing.

    Thanks
    Dennis

    #1010863

    Hey dennsen,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #1011134

    Hi Victoria,

    Ok, then why does it sometimes happen that when I switch between avia builder and standard editor, that all the content is gone and I can’t bring it back? Normally I don’t switch between avia and standard, but it happened to me by accident and it was not a very good experience!

    Thanks
    Dennis

    #1011280

    Hi,
    You can use the “supports” parameter to add revision support to your cpt (see https://codex.wordpress.org/Function_Reference/register_post_type ). Use it like:

    
    function codex_custom_init() {
        $args = array(
          'public' => true,
          'label'  => 'Books',
          'supports' => array( 'title', 'editor', 'revisions' )
        );
        register_post_type( 'book', $args );
    }
    add_action( 'init', 'codex_custom_init' );
    

    Best regards,
    Peter

    #1012390

    Thank you Peter!

    That helped alot!

    Best regards,
    Dennis

    #1012631

    Hi Dennis,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1012676

    Close, thanks alot!

    #1012681

    Hi,

    Thanks letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How can I add revisions to custom post types?’ is closed to new replies.