WordPress.org

Forums

Hueman
[resolved] Multiple categories in Featured Slider? (3 posts)

  1. Nathan
    Member
    Posted 1 year ago #

    Hi,

    I want to modify the code so that I can choose multiple categories to be shown in the Featured Slider. After looking into stylesheet, functions.php and theme-options.php, I still cannot find where to modify it.

    What I mean by choose multiple categories is I want to add a code to the theme structure itself, not selecting via Theme Options.

    Thank you very much for this theme :)

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 1 year ago #

    Hi!

    Easiest would be to modify /inc/featured.php with a child theme and edit this line:

    'cat' => ot_get_option('featured-category')

    To:

    'cat' => 'sports, economy'

    At least I think the cat value is edited like that:
    http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters

  3. Nathan
    Member
    Posted 1 year ago #

    It works! Thank you very much!!!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic