Support Forum

For all questions related to themes and plugins!

Enter search keyword e.g. "footer color".

  • Registration is Required

    Registration is required to post questions to support forum. ThemeForest buyers also need to obtain Purchase code to be able to post on forum.

    Please read here how to obtain Purchase code.

#1330
Robert Kavgić
Participant

Hello,

Unfortunately, there is no option to filter by category in blog page in Elvyre theme.

You can do this by modifying functions.php file. Add the following code to it:

function my_home_category( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
        $query->set( 'cat', '123' );
    }
}
add_action( 'pre_get_posts', 'my_home_category' );

Just change ‘123’ to the desired category id from which all the posts should be displayed.

Also, we advise you to create an Elvyre child theme for all the modifications.

Robert