WordPress.org

Ready to get started?Download WordPress

Forums

Boot Store
Carousel records (1 post)

  1. 4ainick
    Member
    Posted 3 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic