I found the answer in this topic.
https://colorlibsupport.com/t/featured-slider-for-custom-post-types/