taxonomy-attachment_tag.php dont work with permalink
-
Hi David.
my taxonomy-attachment_tag.php worj without permalink but when aktive permalink not work.
/attachment_tag/azure/ (404 Error: Page Not Found )
?attachment_tag=azure (ok working)
<?php get_header(); // Loads the header.php template. ?>
<div class=”subpage-title container-fluid”>
<div class=”row-fluid”>
<div class=”span4 hidden-phone”></div>
<div class=”span4″><h1> <?php $term = get_term_by(‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
echo $term->name; ?> ?</h1>This page provides some pointers on wearing <?php $term = get_term_by(‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
echo $term->name; ?>
</div>
</div>
</div>
<div class=”mla-tags-gallery”>
<?php echo do_shortcode(‘[mla_gallery post_mime_type=application link=”file” size=icon category=”federal” taxonomy=”media-category” mla_caption=”{+title+} {+description+} {+date+}” s=”{+request:$tag+}” ]’ ); ?><?php global $wp_query;
$args = array_merge( $wp_query->query_vars, array( ‘post_type’ => ‘attachment’, ‘post_status’ => ‘inherit’ ) );
query_posts( $args );
?><div class=”container-fluid”>
<div align=”center” id=”masonry”>
<?php get_template_part( ‘loop-meta’ ); // Loads the loop-meta.php template. ?>
<?php if ( have_posts() ) : ?>
<?php echo do_shortcode( sprintf( ‘[mla_gallery %1$s=”%2$s” mla_caption=”{+title+}” columns=”5″ numberposts=”1000″ order=DESC]’, $wp_query->query_vars[‘taxonomy’], $wp_query->query_vars[‘term’] ) ); ?>
<?php else : ?>
<?php get_template_part( ‘loop-error’ ); // Loads the loop-error.php template. ?>
<?php endif; ?>
</div></div></div><!– .hfeed –>
<?php // get_template_part( ‘loop-nav’ ); // Loads the loop-nav.php template. ?>
<?php get_footer(); // Loads the footer.php template. ?>
- The topic ‘taxonomy-attachment_tag.php dont work with permalink’ is closed to new replies.