Only featured questions displayed in the main(home) page

4.33K viewsGeneral
0

Hi.

 

Would it be possible to show only featured questions in the main(home) page?

 

Currently, featured questions are shown at the top of the list of all questions in the main page. But I need the function to display ONLY featured questions.

 

If possible, please give me a direction.

 

Thank you!

0

This function will return only featured questions:

$query = ap_get_questions( 
          array( 'post__in' => get_option('featured_questions') ) 
         );

Now simply do a while loop for posts.

Thank you for your help!

By the way, which file do I have to edit? Please let us know the file name.

Thanks.

home.php if you are using AskBug theme.