I am trying to modify the combo widget so that it has two tabs (which I’ve done). The first tab shows recent posts (done) and I want the second to display a list of recent portfolio entries.
Can this be done fairly easily?
You need to create a new function like avia_get_post_list which you find on framework > php > class-framework-widgets.php but this time it has to query the portfolio items.
Finally managed to do this by changing line 822 from
avia_get_post_list(‘showposts=’. $posts .’&orderby=post_date&order=asc’);
avia_get_post_list(‘post_type=portfolio&showposts=’. $posts .’&orderby=post_date&order=asc’);
Maybe helpful for someone else :)
The topic ‘Show Portfolio Items in Combo Widget’ is closed to new replies.