• First of all I would like to thank you to the author of this theme Alexander Agnarson. Totally loved it.

    I would like to add multiple featured content sliders on index page for different category posts.

    Also I would like to add featured content slider on category page according to that category. for example if i create category of market-featured and add some top posts from market category to that category, I want category page of market to show feature content sliders with market-featured posts. same for other categories also. I’ll add top post form each category to ‘EXAMPLE-featured’ category so that every category page will show some top posts for that category.

    Please help me with this, this is the only feature i desired to have to this theme.

Viewing 1 replies (of 1 total)
  • Hi minato4u. Welcome to the Hueman forum. I don’t have time to dig into this but, just off the top of my head, I think you’d be looking at something like this:
    1. Copy /inc/featured.php to the same folder in a child theme.
    2. Modify the WP_Query call to accept a category argument.
    3. Add the category argument to the WP_Query arguments.
    4. Copy index.php to a child theme.
    5. In index.php add additional calls to /inc/featured for however many different categories you want to display.
    6. In index.php, for each call to /inc/featured, add the desired category as an argument.
    7. Copy archive.php to a child theme.
    8. Add a call to /inc/featured in archive.php with a category argument.
    9. In archive.php add php code above the call to /inc/featured to determine which category page you’re on based on the category class in the body tag.
    10. In archive.php set the /inc/featured category argument with the category based on which category page you’re on.

    Again, that’s just a top-level look; there is more detail involved once you get started. I’m sure there’s also css that would be needed. And, each time you add a new category you’d need to modify archive.php and potentially index.php.

Viewing 1 replies (of 1 total)

The topic ‘Multiple featured content sliders’ is closed to new replies.