• I have created a custom post type, named Movies.
    And I created a custom submit post page. Where users can submit a new post by filling up the fields, title, description, tags. And by selecting a movie category from the categories showed in checkbox.
    example:
    movie title: Lord of the Ring
    user will select Adventure, Action, Fantasy from the list of categories displayed in checkbox.

    I got my custom page working. When the user click submit post. It is added in the post type Movies. But the problem is regarding the checkbox. The submitted Movie post aren’t filed in any category. It seems the checkbox is not included when the post is submitted. How to solve this?

    Here’s my code so far.

    https://pastebin.com/aDEcu5uj

Viewing 1 replies (of 1 total)
  • Could be the fact that you’ve put the name into an array, but there’s no values in the array ([]).

    Just as a tip, instead of action="<?php echo(get_permalink($post->ID)); ?>" use action="<?php $_SERVER['REQUEST_URI']; ?>".

    Another tip, you don’t have to do $i = $i+1, you can use $i++.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom submit page with categories on checkbox’ is closed to new replies.