Viewing 15 replies - 46 through 60 (of 104 total)
  • When selecting the menu location as a submenu of something else, it would be nice if that part of the code was exported as well.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    @dnavarrojr I’d actually call that a bug/missed detail more than a feature request. Investigating.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Edit: may need to click on some to see the larger size.

    @dnavarrojr I’m not managing to reproduce that. See screenshots below:

    https://cloudup.com/cUx0LLJk_Ff

    https://cloudup.com/cTBGl8PVWNy

    https://cloudup.com/cK7WbTlpTWo

    https://cloudup.com/cgq-Te6rqay

    Odd, but I think you are correct. It must have been an older version where I didn’t see it. I’ve got the latest version installed on my dev site and I’m seeing the same thing as you.

    My apologies.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No worries, and thanks for checking in with it, just in case ??

    What do you think about adding an option to standardly sort a CPT by title in admin dashboard instead of date? I’m sure there are many use cases where this makes more sense and saves an extra click every time.

    Peter

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you referring to how they appear in the admin menu? or how the posts are actually ordered in the list table? They’re already sortable, to a certain degree, by clicking the “Title” heading at the top and bottom of title columns. Doesn’t look permanent though.

    I meant the list table ordering. Clicking on the title heading every time is a bit annoying. I think it should be a trifle using the pre_get_posts filter and it would be a very helpful enhancement.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    That one is probably not one I’m going to add to the plugin, as I’ve never seen much demand for that. However, I would be more than willing to add a quick tutorial to our documentation at https://docs.pluginize.com/category/126-custom-post-type-ui

    Early version that is working, but would be refined a bit more at time of tutorial writing.

    function michael_order_cpt_by_title( $query ) {
    	if ( ! is_admin() ) {
    		return;
    	}
    
    	if ( ! $query->is_main_query() ) {
    		return;
    	}
    
    	$screen = get_current_screen();
    	if ( ! is_object( $screen ) ) {
    		return;
    	}
    
    	if ( 'movie' === $screen->post_type ) {
    		$query->set( 'orderby', 'title' );
    		$query->set( 'order', 'ASC' );
    	}
    }
    add_action( 'pre_get_posts', 'michael_order_cpt_by_title' );
    

    Thanks for your answer. Personally, I do not need a tutorial, I know how to do it. I just wanted to make a suggestion because I came across it.

    Peter

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    In case someone else looking for the same thing wanted it, now they have a quick snippet to work with ??

    I’d love to be able to add custom fields to the custom taxonomies that CPT-UI adds.

    Example:
    taxonomy of “author” would have a “website” field on it.

    I’ve found plenty of tutorials of how to do this myself, but would greatly appreciate being able to manage those values from the dashboard instead of editing code every time I want to add a new random field and CPT-UI is already installed and working well…

    @tgiokdi, take a look at advanced custom fields it’s what we use in tandem with CPT-UI for our Custom Fields.
    Cheers

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Details around post/term/user meta are probably going to be better left to other existing plugins that are well established already.

    I do appreciate the interest and suggestion, though.

    Hi,

    In plugin Custom Post Type IU,
    I would like add a new image field in Supports with Custom Fields.

    Is it possible ?
    I need a solution…..

    Thanks all !

    Thomas

Viewing 15 replies - 46 through 60 (of 104 total)
  • The topic ‘Feature requests’ is closed to new replies.