WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Simple Portfolio] Method simple_portfolio_list_categories (2 posts)

  1. markvanwijnen
    Member
    Posted 2 years ago #

    This
    simple_portfolio_list_categories(null, array('child_of'=>0,'depth'=>1));

    Returns my top category (only) and seems to respond to the arguments properly. However when I use this:
    simple_portfolio_get_categories(null, array('child_of'=>0,'depth'=>1))

    To receive the categories it seems to totally ignore the arguments and so I receive all categories (including all children).

  2. markvanwijnen
    Member
    Posted 2 years ago #

    Apparently the arguments you pass to simple_portfolio_get_categories are different.

    @see WordPress: Get Categories

Topic Closed

This topic has been closed to new replies.

About this Topic