• Resolved renuecomputers

    (@renuecomputers)


    I am working on a website with the Twentyeleven theme and the owners want a menu item when clicked displays a list of their article (blog) categorys in the content section of the page (not in sidebar) and then clicking on a category will list the articles. From there if you click on an article it displays the article.

    Is this possible? Iam kinda a code tweeker at most. I really do not have any experience writing php but have a bit more experience with css.

    Perhaps there are a series of widgets to accomplish this? I cannot find a way yet to accomplish this in the theme.

    Thanks for any replies,

    RC

Viewing 1 replies (of 1 total)
  • Thread Starter renuecomputers

    (@renuecomputers)

    After alot of searching I found the answer.

    Here is how you show all categories in the sidebar even if they are empty.

    Edit the functions.php file and add this code to the beginning of it:

    add_filter( 'widget_categories_args', 'wpb_force_empty_cats' );
    	function wpb_force_empty_cats($cat_args) {
        $cat_args['hide_empty'] = 0;
        return $cat_args;
    }

    coffee

Viewing 1 replies (of 1 total)
  • The topic ‘Twenty Eleven theme show categorys and posts’ is closed to new replies.