Created
May 1, 2012 00:57
-
-
Save robertcedwards/2564070 to your computer and use it in GitHub Desktop.
Adding custompost type with taxonomy then display on tag page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_taxonomy("Tags", array("video"), array("hierarchical" => false, "label" => "Video Tags", "query_var"=> true,"singular_label" => " Video Tag", "rewrite" => true)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $args = array( 'post_type' => 'video', 'posts_per_page' => 10 , 'tags' => 'frontpage' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment