Need Help – Problem display-ing the taxonomy
-
Hy guys, i have a small problem , i cant display taxonomy post, i get the link but the content is empty, anny sugestion
register_taxonomy("clipuri","clip", array("hierarchical" => true, "label" => "Cat Clip", 'show_ui' => true, 'query_var' => true, "singular_label" => "clipuri", "rewrite" => true , 'with_front' => false));
In template file i have
archive-clip.php – that is the post type archive
taxonomy-clipuri.php – that is taxonomy archiveArchive Clip File
<?php /* Template Name Posts: Archive Clip */ ?> <?php include (TEMPLATEPATH . '/header/header-video.php'); ?> <div class="box_video"> <div class="box_clip"> <iframe width="650" height="420" src="https://www.youtube.com/embed/<?php $key="youtube_id"; echo get_post_meta($post->ID, $key, true); ?>" frameborder="0" allowfullscreen></iframe> </div> <div class="box_related"><?php include (TEMPLATEPATH . '/clip/related-video-amestecate.php'); ?></div> </div> <div class="box_social_clip_arhiva"><marquee>Multumim tuturor celor care au dat like la site, promitem ca nu o sa va dezamagim. Update zilnic cu tot ce se intampla in show-ul Xfactor Romania.Multumim ! Echipa XFactor Romania! https://www.xfactor-online.com </marquee></div> <div class="art-Sheet"> <div class="art-Sheet-tl"></div> <div class="art-Sheet-tr"></div> <div class="art-Sheet-bl"></div> <div class="art-Sheet-br"></div> <div class="art-Sheet-tc"></div> <div class="art-Sheet-bc"></div> <div class="art-Sheet-cl"></div> <div class="art-Sheet-cr"></div> <div class="art-Sheet-cc"></div> <div class="art-Sheet-body"> <div class="art-contentLayout"> <?php include (TEMPLATEPATH . '/clip/sidebar-left-clip.php'); ?> <div class="art-content"> <div class="nav"> <?php if(function_exists('wp_paginate')) {wp_paginate();} ?> </div> <?php is_tag(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="box-clip"> <div class="clip-img"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Clip %s'), the_title_attribute('echo=0')); ?>"> <span class="tip_clip"><?php $key="tip"; echo get_post_meta($post->ID, $key, true); ?></span> <img src="https://img.youtube.com/vi/<?php $key="youtube_id"; echo get_post_meta($post->ID, $key, true); ?>/<?php $key="imagine_video"; echo get_post_meta($post->ID, $key, true); ?>"></a> <span class="timp_clip"><?php $key="timp"; echo get_post_meta($post->ID, $key, true); ?></span> </div> <span class="clip-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Clip %s'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></span> </div> <?php endwhile; ?> <?php endif; ?> </div> <?php include (TEMPLATEPATH . '/sidebar2.php'); ?> </div> <div class="cleared"></div> <?php get_footer(); ?>
The taxonomy is the same thing.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Need Help – Problem display-ing the taxonomy’ is closed to new replies.