Adding Categories on Homepage
-
Hi,
I’m totally new to blogging. I want to create a string of categories on my homepage, but don’t know how to do it. I’m using child theme for twenty eleven. Thanks for replies.
-
Please explain more what you mean by ‘string of categories’.
Are you using a Static Front Page? I think you can get what you want by using wp_list_categories() in the template for that page.
Yes I am using a static front page and would like to put a sidebar that lists my categories. You know that sidebar where when you click on each of those listed in the categories and will lead you to the post which is in a different page?
Thanks for your reply but where will I go and view this code you stated? I’m sorry if I’m being ignorant but I know nothing about programming, coding and much less the technical jargons so please bear with me.Does the page currently have a sidebar?
If not, you will need to modify the existing template to include a sidebar. Here is an article that explains how to do that:
http://www.wpmods.com/add-sidebar-twenty-eleven-theme/
Once you have the sidebar, go to Admin->Appearance-Widgets and drag the ‘Categories’ widget into the sidebar. Choose the settings for the widget and click ‘Save’.
I have been that road before, (when I haven’t installed twenty eleven-child theme yet) and really messed up my theme, had to call for support to fix the issue.
But I still followed your advice and saw that with 2011 child theme the sidebar code is already there right above the “get footer” code. Will I just go and drag the categories widget into the sidebar or do I have to deactivate the child theme and reactivate the default twenty eleven theme?If your front page already has a sidebar, just go to Admin->Appearance->Widgets, drag the Categories widget into it and Save.
Done that, thanks, but it has categories yes and no list instead there is this drop down arrow. How can I put the list of my categories? Do I have to insert another code and if so where in the template? If you got a time can you have a look here? you will notice that my page is bare.
Go back to Admin->Appearance->Widgets.
Click the little down-arrow on the right of the Categories widget title bar to open the widget configuration.
Uncheck ‘Display as dropdown’.
You may want to check ‘Show hierarchy’ to indent child categories.
Click ‘Save’.
Ok I have unticked the “Display as dropdown” but still I do not see the list of categories that I created.
Categories will not show up unless they have some posts assigned to them or one of their sub-categories.
Create some posts and assign categories. Your categories should show up then.
I already have some posts and even categorized them but maybe I did it the wrong way. How do I do it the right way?
Thank you so much you’ve been very patient.When I click on ‘Blog’ and click through your posts, all of them are in the ‘Uncategorized’ category.
Edit a post and check the checkbox next to the category you want in the Categories box on the right. Then click ‘Update’.
If you don’t see the Categories box, click ‘Screen Options’ at the top right and make sure the ‘Categories’ checkbox is checked and the ‘Number of Columns:’ is set to 2.
I got it, geez it was under my nose, the problem now is they are in my BLOG now. I want the category listed in my HOME.
See my earlier reply that has a link on adding a sidebar.
Thank you very much for your help. I really appreciate it… with our exchange of posts I have learned a bit about coding.
See you in my next posts.
The topic ‘Adding Categories on Homepage’ is closed to new replies.