Home Forums Plugin Support WP User Frontend Pro Editing custom post types in backoffice not working

This topic is: not resolved

This topic contains 36 replies, has 4 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 15 posts - 16 through 30 (of 37 total)
  • Author
    Posts
  • #45340

    towhid
    Participant
    Post count: 4505

    Hello Olivier,

    Make sure you have properly registered a custom post type. I have register a custom post type and assign a post form. I have also edit that custom post type post several times from the backend but it is not creating lots of post.

    My suggestion will be register a simple custom post type and see what happen.

    Thanks

    #45383

    Olivier
    Member
    Post count: 31

    Hello Towhid,

    How did you create your CPT ? I used the plugin Types to that.

    Thanks

    #45456

    towhid
    Participant
    Post count: 4505

    Hello Oliver,

    I have created a custom post type. The custom post type code is here:

    function codex_book_init() {
    	$labels = array(
    		'name'               => _x( 'Books', 'post type general name', 'your-plugin-textdomain' ),
    		'singular_name'      => _x( 'Book', 'post type singular name', 'your-plugin-textdomain' ),
    		'menu_name'          => _x( 'Books', 'admin menu', 'your-plugin-textdomain' ),
    		'name_admin_bar'     => _x( 'Book', 'add new on admin bar', 'your-plugin-textdomain' ),
    		'add_new'            => _x( 'Add New', 'book', 'your-plugin-textdomain' ),
    		'add_new_item'       => __( 'Add New Book', 'your-plugin-textdomain' ),
    		'new_item'           => __( 'New Book', 'your-plugin-textdomain' ),
    		'edit_item'          => __( 'Edit Book', 'your-plugin-textdomain' ),
    		'view_item'          => __( 'View Book', 'your-plugin-textdomain' ),
    		'all_items'          => __( 'All Books', 'your-plugin-textdomain' ),
    		'search_items'       => __( 'Search Books', 'your-plugin-textdomain' ),
    		'parent_item_colon'  => __( 'Parent Books:', 'your-plugin-textdomain' ),
    		'not_found'          => __( 'No books found.', 'your-plugin-textdomain' ),
    		'not_found_in_trash' => __( 'No books found in Trash.', 'your-plugin-textdomain' )
    	);
    
    	$args = array(
    		'labels'             => $labels,
    		'public'             => true,
    		'publicly_queryable' => true,
    		'show_ui'            => true,
    		'show_in_menu'       => true,
    		'query_var'          => true,
    		'rewrite'            => array( 'slug' => 'book' ),
    		'capability_type'    => 'post',
    		'has_archive'        => true,
    		'hierarchical'       => false,
    		'menu_position'      => null,
    		'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
    	);
    
    	register_post_type( 'book', $args );
    }

    This custom post type is just a test. You can work around and see what is the result.

    Thanks.

    #45569

    Olivier
    Member
    Post count: 31
    This reply has been marked as private.
    #45637

    towhid
    Participant
    Post count: 4505

    Hello Olivier,

    Please provide your login details(FTP) by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #45920

    Yves
    Participant
    Post count: 23

    Any update here?
    Has it been patched and
    Solved?

    Yves

    #45934

    towhid
    Participant
    Post count: 4505

    Hello Yves,

    Please try above register post type code I have provided to you in your theme's functions.php and see what happen.

    Thanks

    #45936

    towhid
    Participant
    Post count: 4505

    Hello Olivier,

    I have created Book custom post and make a post. Also, I have an edit that post from backend several times but did not notice any loop. Can you please check please.

    Thanks

    #46009

    Olivier
    Member
    Post count: 31
    This reply has been marked as private.
    #46011

    Olivier
    Member
    Post count: 31

    Yves,

    It's making it's way through, I think it may be an inteference with the ACF Plugin custom fields and the WPUF custom fields which were created I don't know how.

    Olivier

    #46417

    Olivier
    Member
    Post count: 31

    Hello Towhid,

    can you give me an update on what I sent you (above post) please ?

    Thank you,

    Olivier

    #51589

    towhid
    Participant
    Post count: 4505

    Hello Olivier,

    Please let me know did you delete the Book CPT?

    Thanks

    #51631

    Olivier
    Member
    Post count: 31

    Hello Towhid,

    No did not.

    Thanks

    #51657

    towhid
    Participant
    Post count: 4505

    So, Book CPT is responsible for the loop of Devis custom post?

    #51659

    Olivier
    Member
    Post count: 31

    No not at all, I think it's because there is no WPUF custom field for PDF and it's trying to save my own custom field PDF.

    Look at the above picture, you can see that there is the last field for PDF that is not present in the WPUF
    fields.

    Actually, come to realise it there are two of my own custom fields missing in the WPUF custom fields : the one at the beginning and the one at the end.

    Thanks for your feedback,

    Olivier

Viewing 15 posts - 16 through 30 (of 37 total)

The topic ‘Editing custom post types in backoffice not working’ is closed to new replies.