• Resolved atharalikhichi

    (@atharalikhichi)


    Hi Team. Lovely plugin!

    I a little stuck here in enabling Revisions for the Event Posts.

    I have set define( 'WP_POST_REVISIONS', 10); in my /wp-config.php file which is working absolutely find and keeping last 10 revisions for my WORDPRESS POSTS. But when any EVENT POSTS are edited / revised, no revisions are being stored.

    Please help on how to enable this as my settings are already their to store revisions on Word-press default posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter atharalikhichi

    (@atharalikhichi)

    I was able to resolve it by entering following code in my theme’s functions.php file:

    /**
     * Enables Revisions on Event Listings
     */
    function add_revisions_event_listings() {
    	add_post_type_support( 'event_listing', 'revisions' );
    }
    add_action( 'init', 'add_revisions_event_listings' );
    Plugin Author Ashok Dudhat

    (@ashokdudhat)

    Hi,

    That cool ??

    Regards
    Ashok

    Thread Starter atharalikhichi

    (@atharalikhichi)

    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable Post Revisions of Events’ is closed to new replies.