hi
I installed the sparkling template.
I created the SLIDER category for items that I would like to highlight through the featured image.
The image to be put in the header has a precise dimension
The problem is that any featured image of any item is put in the slider.
My requirement is: only the featured image of the article that I tag with SLIDER category, can appear in the slider
I searched in the forum and found this piece of code to put in function.php (I think at any point) in this post https://colorlibsupport.com/t/suppress-slider-on-posts-page/
function exclude_category( $query ) {
if( ! is_category() && of_get_option( ‘sparkling_slider_checkbox’ ) == 1 ){
$slidecat = of_get_option( ‘sparkling_slide_categories’ );
if ( $query->is_main_query() ) {
$query->set( 'cat', '-'.$slidecat );
}
}
}
I did so, and in the slider in facts, no picture appears that is not the choice of the “slider options” category (SLIDER)
BUT
in backpanel> all posts, the article with the SLIDER tag, disappears! And the article is not published in homepage!
There are 3 articles published, I see only two. It is gone and no longer able to find, edit or even delete.
Luckily I had still open, and I could try to remove the tick in SLIDER, I reload, and the post has reappeared in the list “all posts”
It would be important to me that only category that I decided in “slider options”, to publish the featured image in the slider, but not make me disappear the article from the list “all posts” : D
Thanks for the attention and excuse me for the bad english.
Giovanni