Jordyn Fisher
asked 8 years ago

I would like to change it to “15 must watch videos.” is this possible? I don’t know ANY coding. I want to also change it to ensure that it will be videos showing and not other posts. 
Thank you!

1 Answers
DominicStaff
answered 8 years ago

To display the VIDEO posts, you can only pick “15 Must Read Articles” to display the Video posts  from a category. To  change the text, please open the functions.php file /go to line 799 -> 804. Find the following code:

$post_array = array(
'posts_per_page' => $max_number_posts,
'order' => 'DESC',
'post_status' => 'publish',
'ignore_sticky_posts' => 1
);  

Change it into this:  

$post_array = array(
'posts_per_page' => $max_number_posts,
'order' => 'DESC',
'post_status' => 'publish',
'ignore_sticky_posts' => 1
);

$post_array[‘category__in’] = array( /*categories ids ex: 1, 2, 3*/);   See the Screenshot below for more details: Please change your categories ID here: /*categories ids ex: 1, 2, 3*/ If you want to know Id of the categories, you can hover over the categories. See the screenshot: – In order to change the “15 Must Read Articles” on DW Focus, please open the file functions.php, find line 819 and fix the code.
See the screenshot:

Powered by DW Question & Answer Pro