SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2011
    Location
    Northern Ireland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to create a horizontal menu of "categories" in wordpress?

    Hi,

    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?

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2011
    Location
    Northern Ireland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone ?

    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

    <ul>

    <a href="<?php the_permalink() ?>"><!?php wp_list_categories('show_count=0&title_li=&hide_empty=0&exclude=1'); ?></a>

    </ul>

    anyone please?

  3. #3
    SitePoint Addict
    Join Date
    Sep 2003
    Location
    India
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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_P...and_Categories

    - Experienced WordPress Consultant.
    - Get website design done by Anblik Web Design Company.
    - Collection of Top Free Online Website Builder.
    - Collection of Free Online Website Usability Testing Tools.

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2011
    Location
    Northern Ireland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •