• Resolved mheda

    (@mheda)


    I am using a custom post type by adding the hook in my functions. But now when I submit a post to that post type, I no longer see the User Submitted Post Info details at the bottom of the post in my admin like I did when I was just using the default WP Post. How can I still see these details when using my custom post type?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Thanks for reporting this, it looks like a bug. I will investigate and get it fixed up for the next plugin update.

    Thread Starter mheda

    (@mheda)

    Thank you for the quick response! Do you have an idea of how long it might be for the next update with this? Just wanted to know when I should start to look out for it. Thanks again!

    Plugin Author Jeff Starr

    (@specialk)

    Sure! The next plugin update should coincide with the next WordPress update (e.g., version 5.3). Typically the plugin is updated with each major WP release.

    Thread Starter mheda

    (@mheda)

    Good to know that they typically happen with those releases. Thanks!

    Thread Starter mheda

    (@mheda)

    In the meantime, is there anyway for me to get to these details for the posts that are being submitted?

    Plugin Author Jeff Starr

    (@specialk)

    Yeah, the USP meta box info is pulled directly from custom fields. So just enable the Custom Fields box it’s all there.

    Thread Starter mheda

    (@mheda)

    Got it – Thanks!

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this, by default USP limits display of the meta box to Posts and Pages only (post types = post or page). As of the next version of the plugin (v20190825), there is a filter that can be used to add other post types to the list. Add the following snippet to your theme functions or via simple plugin:

    // Add custom post type to USP Meta Box
    function usp_meta_box_custom_post_types($post_types) {
    	
    	array_push($post_types, 'book'); // change 'book' to your custom post type
    	
    	return $post_types;
    	
    }
    add_filter('usp_meta_box_post_types', 'usp_meta_box_custom_post_types');

    As-is this function adds the “book” CPT to the list for displaying the USP meta box. You can change “book” to your post type, or even add multiple CPTs as needed, etc.

    Thanks again for the feedback, @mheda.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘User Submitted Info with Custom Post’ is closed to new replies.