How do I put a category into my sidebar

8 replies
  • WEB DESIGN
  • |
I am using wordpress. I want to put an additional category into my sidebar. How do I get about doing that? I want to have a category for articles. Thanks
#category #put #sidebar
  • Profile picture of the author JennyDeen
    doesn't anyone know how to do this?
    {{ DiscussionBoard.errors[776716].message }}
    • Profile picture of the author JennyDeen
      I feel really bad about this asking thrice but can some kind person out there help me with this. Thanks
      {{ DiscussionBoard.errors[779043].message }}
  • Profile picture of the author Ken Shorey
    Hi Jackie,

    If you already have categories showing in your sidebar, then all you need to do is is create your new category and it will show up along with the current categories.

    Admin...Categories...Add New
    {{ DiscussionBoard.errors[780170].message }}
    • Profile picture of the author JennyDeen
      I think I have not made myself clear in what I actually wanted. I should have not used the term category. In my side bar are various headings (Archives, categories, meta etc). I want to know how I could get, say, articles or ebooks as one of those main headings and under those headings have the list of articles and the list of ebooks.
      {{ DiscussionBoard.errors[780178].message }}
  • Profile picture of the author webdesigners
    Contact me I'll do it for you free of charges you just write a good review for my work here!
    {{ DiscussionBoard.errors[780254].message }}
  • Profile picture of the author Kezz
    I think you're talking about adding new widgets. The easiest way to add your own custom widgets is to use the inbuilt 'text widget' function. You can put anything you like into a text widget, including links to whatever you want.

    So you would add the text widget, give it whatever heading you wanted, and then insert some html into its body area. Most of the time widgets use lists, so you would do something like this:

    HTML Code:
    <ul>
    <li><a href="http://www.yourlink.com">Your item</a></li>
    <li><a href="http://www.yourlink2.com">Your item 2</a></li>
    <li><a href="http://www.yourlink3.com">Your item 3</a></li>
    </ul>
    If a list doesn't come up looking right, you can just use line breaks instead, like this:

    HTML Code:
    <a href="http://www.yourlink.com">Your item</a><br />
    <a href="http://www.yourlink2.com">Your item 2</a><br />
    <a href="http://www.yourlink3.com">Your item 3</a><br />
    That should do it for you.
    {{ DiscussionBoard.errors[781554].message }}
    • Profile picture of the author JennyDeen
      Hi Kezz,

      Yes that is what I want. I tried it out and it worked fine. However, I noticed that when I do that the other widgets like main menu, archives etc go missing.

      Suppose I overcome the first problem and I then use this method is there anyway that when I have a widget called Articles and each time I write an article it automatically goes as a subheading of the main heading, namely, Article

      Also how do I change the permalink. My permalink at the moment is http://www.mydomain.com/?p=123 How do I put the name of the specific page there. However my pages don't have names cos I want it that way.

      Thanks.
      Jackie
      {{ DiscussionBoard.errors[781805].message }}
  • Profile picture of the author Kezz
    On the disappearing widgets, the things you had there to begin with might have been the defaults told to display if you don't have your own widgets selected via the admin panel. Try re-adding the ones you want via the Widget management area and see how you go.

    The easiest way to get your most recent articles automatically displaying in a list, is to use the inbuilt Recent Posts widget. You can then give it the name Recent Articles and it should do what you are describing.

    As for your permalink setup, there are two steps. First, you need to have a file in the main root folder of your site called .htaccess. If you don't have one there already, create a notepad text file called htaccess.txt Then, upload that file to the root folder of your site. Once you have uploaded it, rename it to .htaccess You will need to check the file's permissions and make sure it is writable, which you can also do with your FTP client.

    Once you have your writable .htaccess file in the root folder of your site, go into your admin panel to the area where you set up your permalink structure. Select 'custom' from the list of options, and paste in /%category%/%postname%/ Then save your settings and wordpress will write your permalink rewrite rules into the .htaccess file you created. From then on you should have nice SEF permalinks.

    Hope that helps!
    {{ DiscussionBoard.errors[790643].message }}

Trending Topics