Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Multisite WordPress Unable to Update #6819
    luminaire801
    Member

    Hi Steve,

    I’ve attached the screenshots of the results.

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Add Revisions Support for CPT metadata #1651
    luminaire801
    Member

    I would really love to have this built into Piklist out of the box.

    Thanks! Piklist has been awesome!

    in reply to: Add Revisions Support for CPT metadata #1650
    luminaire801
    Member

    Hi guys,

    I’m happy to report back that the Custom Field Revisions plugin works.
    It does however, have some bugs. The current custom field revisions have a difference of 1 past revision.
    Also, if you want Custom Field revisions to show when comparing revisions, you need to copy a file in to wp-admin folder.

    Ex.
    Orig post:
    title: Hello
    cf-name: John
    Then I edit cf-name to “Mary”
    Rev1:
    title: Hello
    cf-name:
    Rev2:
    title: Hello
    cf-name: John

    So if you edit it again, it will have..
    Rev3:
    title: Hello
    cf-name: Mary

    in reply to: Add Revisions Support for CPT metadata #1643
    luminaire801
    Member

    No problem, Steve.

    I will report back to you when I get to test it out.

    Thanks again.

    in reply to: Add Revisions Support for CPT metadata #1638
    luminaire801
    Member

    Hi Steve, is there anything that I should add to the field? I have a CPT called Projects, I have a Title and a Client (piklist field). When I change the Client field, it doesn’t create a revision, but when I edit the Title it creates a revision. And when I edit both and submit, it creates a revision, however when I restore the revision, it doesn’t include the Client metadata.

    The code for the Client Field

    
    piklist('field', array(
    	'type' => 'select'
    	,'field' => 'client'
    	,'supports' => 'revisions'
    	,'label' => 'Choose a Client'
    	,'choices' => piklist(
    		get_users(
    			array(
    				'orderby' => 'display_name'
    				,'order' => 'asc'
    				,'role' => 'Subscriber'
    			)
    			,'objects'
    		)
    		,array(
    			'ID'
    			,'display_name'
    		)
    	)
    ));
    

    The code for the Post Type

    
    //Adds Menu Option for Project
    add_filter('piklist_post_types' , 'project_post_type');
    function project_post_type($post_types){
    	$post_types['project'] = 
    		array(
    			'labels' => piklist('post_type_labels' , 'Project')
    			,'title' => __('Enter title for New Project')
    			,'public' => true
    			,'rewrite' => array(
    				'slug' => 'project'
    			)
    			,'supports' => array(
    				'author'
    				,'revisions'
    				,'title'
    			)
    			,'capability_type' => 'post'
    			,'menu_icon' => plugins_url('piklist/parts/img/piklist-icon.png')
    			,'page_icon' => plugins_url('piklist/parts/img/piklist-page-icon-32.png')
    			,'post_states' => false
    			,'hide_post_row_actions' => array(
    				'trash'
    			)
    			,'hide_meta_box' => array(
    				'slug'
    				,'author'
    			)
    
    		);
    	return $post_types;
    }
    
Viewing 5 posts - 1 through 5 (of 5 total)