/ Published in: PHP

Add a custom post type of news
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function post_type_news() { register_post_type( 'New', register_taxonomy_for_object_type('post_tag', 'News'); } add_action('init', 'post_type_news'); ?>
Comments
