WordPress.org

Support

Support » Themes and Templates » Carousel records

Carousel records

  • Hello!
    Thank you for such a wonderful theme.
    I encountered the following problem:
    I want to hide the category number 1 records, so it’s do not appear in the main, but that they are displayed in the carousel. Hide category 1 with function:

    function hidecategory ($ query) {
    if ($ query-> is_home) {
        $ query-> set ('cat', '-1');
        }
    return $ query;
    }
    add_filter ('pre_get_posts', 'hidecategory');

    don’t possible, write to disappear along with the main carousel.
    The same effect on the plugin Frontpage category filter.
    Help me please.

  • The topic ‘Carousel records’ is closed to new replies.