How can I make a new category template?
I am unable to find how to make another category template that would be for articles. Which file should I change and what code is about the gallery pic? so that I can remove it for the articles?
TY!
How can I make a new category template?
I am unable to find how to make another category template that would be for articles. Which file should I change and what code is about the gallery pic? so that I can remove it for the articles?
TY!
A way that works for non-programmers is to use the Page Links To plugin.
1) Show your categories in a sidebar widget.
2) Click on the category you want to display on a page.
3) Copy the url.
4) Create the page where you plan to display the selected category.
5) Paste the url into the Page Links To area.
Hi,
TY for your answers.
I have created category templates several times on other websites. But with this theme that has a child, I cannot seem to be able to find where the layout of the category is... For example I can't find where the code says to show the thumbnail....
TY.
library/extensions/content-extensions.php look for the thematic_content() function... that is the one that adds the thumbnail to the excerpts.
you can filter either thematic_post or i think there is a switch that turns off the thumbs
I've never been able to make the category hierarchy work, it always seems to default to single.php / index.php instead of category-slug.php or category-id.php. Usually I'm able to work around it by using a template, but this time I think I need to figure it out.
It's local so I can't post a link.
Here is the file:
category-forget-me-not.php
<?php get_header(); ?>
<div id="homecontent-top">
<img src="http://www.aidsmemorial.org/wp-content/uploads/2009/06/home1.jpg" alt="homepic" width="960" height="400" border="0"/>
</div><div id="featured-content">
<div id="featured-leftcol">
<div class="featured_post">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content("<p class=\"serif\">" . __('Read the rest of this page', 'Grove') ." »</p>"); ?>
<?php wp_link_pages("<p><strong>" . __('Pages', 'Grove') . ":</strong>", '</p>', __('number','Grove')); ?>
</div>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</div>
<div id="featured-rightcol">
<?php include("sidebar-forget-me-not.php"); ?>
</div>
<div class="clear"></div>
<?php get_footer(); ?>This topic has been closed to new replies.