attachments not showing on category archive pages
-
I am developing a new site using a custom theme that I built. The testing url below shows an example of the problem I am having:
https://sptest2.unitedlightgroup.com/category/area-and-path-lighting
That’s a category page, and it displays the two posts in the category one below the other.However, check out this example of a single post:
https://sptest2.unitedlightgroup.com/solar-street-area-lighting/sunboxIf you scroll down below the text you will notice below the main image it says “More images” and then a couple thumbnails appear followed by a small icon for a pdf file.
My category.php template includes the same code to display the gallery of thumbs and the other file attachments that is used in single.php, and I cannot find any help in figuring out why the attachments simply are not showing up anytime the category template is used.My php knowledge is very limited–could it be something about my functions file? I don’t get it. If it helps, below is the snippet that is used in my single template and also my category one that calls the gallery and file attachments for each post. I would love to get to the bottom of this!
<div class="product_foot"> <p>More images</p> <?php echo do_shortcode('[gallery link="attachment" columns="5" order="DESC"]'); ?> <div class="clr"></div><p></p> <h3><dl class="attachments"><?php echo get_attachment_icons(); ?></dl></h3>
Please help! Thank you!
- The topic ‘attachments not showing on category archive pages’ is closed to new replies.