Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14689

    Hi,

    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?

    Many Thanks

    Harley

    #84513

    Hello,

    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.

    Regards,

    Ismael

    #84514

    Finally managed to do this by changing line 822 from

    avia_get_post_list(‘showposts=’. $posts .’&orderby=post_date&order=asc’);

    to

    avia_get_post_list(‘post_type=portfolio&showposts=’. $posts .’&orderby=post_date&order=asc’);

    Maybe helpful for someone else :)

    Harley

    #84515

    Hello,

    Glad you fixed it. Yes, this might be helpful to someone else. :)

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Show Portfolio Items in Combo Widget’ is closed to new replies.