I must ask this question, couse I just cant get it! Sorry. Im stucked, after hours of testing.
Custom template does not spit out anything.
My permalink settings:
My template file:
I created an att.category “Myself” and assign images. Working fine, shows up in tables, columns and so on. Also when:
$terms = get_the_terms($post->ID, 'attachment_category');
So far so good.
When clicking in the att.category table “View”, I gor this slug :
taxonomy-attachment_category.phpopens, but then I cant get it… I tried (trying) :
<?php get_header(); ?> <?php $cat= $_REQUEST['attachment_category']; echo $cat; // debugging... $cat = 'Myself'; // $cat cant be found so I force it ua_cat_nav( 'nav-above' ); echo do_shortcode("[mla_gallery columns=5 link='file' posts_per_archive_page=10 attachment_category='".$cat."']"); ua_cat_nav( 'nav-below' ); ?>
<?php if ( have_posts() ) : ?>returns nothing.
The shortcode works and spit the images, but I need to get the $cat value…
I tried to go through all supports, but cant find a simple whole template.php file example for front end view.
Where am I doing wrong?
- The topic ‘Category template please help’ is closed to new replies.