Sometimes you want to make a link to a specific category only on Wordpress. There are a couple ways you can do this:
1) Create a link to the category page
To do this, you can get the category slug and create a url like this: http://my-url.com/category-slug, where category-slug is your category.
2) Use the wordpress built-in category.php template page. You can get a copy here.
3) You can also do this with a wordpress template page, where you hardcode the category into the page: (Side note: this is a copy/paste/edit of the “Archives” Template page found in the wordpress default Kubrik theme)
-
<div id="content">
-
<div id="entry_content">
-
<div>>
-
<h2><a title="Permanent Link to <?php the_title_attribute(); ?>" rel="bookmark" href="<?php the_permalink() ?>"></a></h2>
-
0', '§ <span class="commentcount">1</span>', '§ <span class="commentcount">%</span>'); ?>
-
<div class="entry"></div>
-
</div>
-
<!– close post_class –>
-
<div class="navigation"></div>
-
<div class="entry">
-
<span class="error"><img src="<?php bloginfo('template_directory'); ?>/images/mal.png" alt="error duck" /></span>
-
-
Hmmm, seems like what you were looking for isn't here. You might want to give it another try - the server might have hiccuped - or maybe you even spelled something wrong (though it's more likely <strong>I</strong> did).</div>
-
</div>
-
<!– close entry_content –></div>
-
Tags: copy paste, editing wordpress, editing wordpress theme, hmmm, Kubrik, page side, php template, slug, Wordpress, Wordpress as CMS, wordpress template
Sphere: Related Content