zany90 — 2012-09-20T12:04:59-04:00 — #1
Im setting up a new blog for my course, as part of the course requirement.. Im designing my own template just to make it unique and so far everything is working perfectly
However, since we will have to add blog posts for each module we do, I want to create a "page" of blog posts for each module/unit of the course (ie. UI design, Cultural Referencing, Website management), rather than having all of my blog posts on one page.... Im figuring this is probably best done with "categories" rather than "pages", and adding each post to its relevant category?
What I would like to do is just create a bog standard list of <a> tags floated left, margin right etc (just a horizontal line of links), which refer to the categories.. For example, if i add a new category, a new link will appear, and when that link is clicked it takes the user to a page of all the blog posts inside that category...
Can anyone point me in the direction of how to do this?
zany90 — 2012-09-23T12:44:39-04:00 — #2
I think ive found the <ul><?php list_categories(); ?></ul> which will list the categories, now im curious how to make these links to the category page? would it be something like
<a href="<?php the_permalink() ?>"><!?php wp_list_categories('show_count=0&title_li=&hide_empty=0&exclude=1'); ?></a>
webcrawler — 2012-09-24T03:11:16-04:00 — #3
I am not sure if I get you question properly, but what i understood that you are looking for a individual category pages with Blog Posts listed. This depnds on the theme you are using because WordPress got this features to show category listing by default. when a viewer clicks on a link to one of the Categories on your site, he or she is taken to a page listing the Posts from that particular Category in chronological order, from newest Posts at the top to oldest at the bottom. There are many display choices, including whether to display the complete post or post excerpts, and what additional information to display (title, author, publish date, last modified time, etc.). Each theme makes different choices, and you might want to change them. read this: http://codex.wordpress.org/Category_Templates & http://codex.wordpress.org/Linking_Posts_Pages_and_Categories
zany90 — 2012-09-24T06:18:19-04:00 — #4
Yeah youve got the idea of what i want to do right but i am not using a pre-made theme, i have coded my own theme so im asking more on the php tag side of things
mittineague — 2014-09-21T01:57:55-04:00 — #5
This topic is now archived. It is frozen and cannot be changed in any way.