WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type / "Submit for Review" only / Does not save meta (8 posts)

  1. berfarah
    Member
    Posted 3 years ago #

    I've pretty much replicated this plugin for podcasts for my own (portfolio) purposes, to simplify the backend for myself and others.

    However, I can't publish the posts (it says "Submit for Review") and it doesn't save the meta data for some reason. I am utterly confused.

    If you have time, and could have a look, I would be ecstatic: http://pastebin.com/ScnRMaeB

  2. biziclop
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Function_Reference/register_post_type
    says:
    $post_type: (string) (required) Post type. (max. 20 characters)
    I give of my post type a 21 chars long name, and this error changed the Publish button to"Submit for review".
    Maybe it helps.

  3. alanchrishughes
    Member
    Posted 3 years ago #

    Did you find a way to fix the 20 character problem?

  4. biziclop
    Member
    Posted 3 years ago #

    If you check the wp_posts table, you will see that "post_type" field is defined as varchar(20), so it's not possible to fix this problem, unless you want to mess with the database structure.

  5. alanchrishughes
    Member
    Posted 3 years ago #

    That sucks, I wouldn't even know where to find or edit that file or if that is even a file.

  6. alanchrishughes
    Member
    Posted 3 years ago #

    And since there is no feature yet allowing you to organize/hierarchy your post type and taxonomy url's I was leaning pretty heavy on creating big run on words for urls.

  7. biziclop
    Member
    Posted 3 years ago #

    Maybe these plugins (the second is not a plugin yet, just a php class) will help you too:
    http://www.johnpbloch.com/plugins/custom-post-permalinks/
    http://somadesign.ca/projects/smarter-custom-post-types/

  8. alanchrishughes
    Member
    Posted 3 years ago #

    Thanks bizclop

Topic Closed

This topic has been closed to new replies.

About this Topic