Media by admin


Warning: Undefined variable $post_id in /home/hawkinsl/public_html/wp-content/themes/twentytwenty-child/single-media.php on line 48
What this code does is that it registers a post type 'movies' with an array of arguments. These arguments are the options of our custom post type. This array has two parts, the first part is labeled, which itself is an array. The second part contains other arguments like public visibility, has archive, slug, and show_in_rest enables block editor support. Now let’s take a look at a detailed piece of code that adds more options to your custom post type.