• Is there any code that can be used in the sidebar which will list each category, with x amount of posts from each category under it, using standard unordered list formatting?

    Category 1
    – Post 1
    – Post 2
    – Post 3
    Category 2
    – Post 4
    – Post 5
    – Post 6

    etc

    Something like:

    $categories = get_the_category();
    
    foreach($categories as $category){
    
    cat name 1
    -post 1-100

    I am not concerned with server resources or processing power.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I wanna have exactly the same! But I don’t know how to realize! Did you find a solution?

    if you have searched the plugins’ directory of wordpress
    https://www.ads-software.com/extend/plugins/
    and haven’t found anything, you may consider downloading and trying this:

    https://wordpress.pastebin.com/YFQC6biN

    a plugin/widget to show a category list with a set number of posts per category –
    categories order alphabetical;
    posts ordered latest first;
    organized in an unordered list, with the post in the sub level.

    download and save it in the plugins folder of your wordpress installation.

    activate as normal from within the dashboard – ‘plugins’;

    then use as normal widget from ‘apperance’ ‘widgets’;

    the widget options include:

    – widget title;
    – set the number of posts per category (default = 5);
    – show the post count per category (default = no);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_categories with posts?’ is closed to new replies.