Create a wordpress custom post type

I’ve few questions about the custom post type in WordPress.

a) I read that custom post type code should be embedded in a plugin. Is that really necessary?

Read More

b) Is the declaration add_action( 'init', 'create_post_type' ); supposed to stay forever, or once added for the first time can be later removed?

c) How can I programmatically add the content and associate it to my custom post type?

Thanks.

Related posts

Leave a Reply

1 comment