ckubs george
asked 7 years ago

I like the must read articles feature in DW Focus but right now it shows the latest articles posted on my site.

How can I control the output of the articles? For example to chose articles posted on a certain category or a certain tag. An option like this in theme settings would be awesome.

1 Answers
answered 7 years ago

At the moment, you can open the nav.php file, find the line 110 then add the following code:
$post_array['category__in'] = array( /*categories ids ex: 1, 2, 3*/);
Please change your categories ID here: /*categories ids ex: 1, 2, 3*/
If you want to know Id of the categories, you can hover on the categories in the Dashboard > posts > Categories.
See the screenshot:

replied 7 years ago

Thank you. It would be nice if I could filter the posts by tags too. And hope in a future release the theme will get that option in the admin.

dominic Staff
replied 7 years ago

I sent and notified our technical team about this problem. We will discuss about it.

Powered by DW Question & Answer Pro