WordPress.org

Support

Support » Plugins and Hacks » [Plugin: JSON API] Help with custom controller get_category_post function with additional parameter

[Plugin: JSON API] Help with custom controller get_category_post function with additional parameter

  • Rohan
    Member

    @rohanrehmangmailcom

    New to WP and $php, trying to correctly alter a working php method to receive an additional parameter.

    I’ve duplicated the get_category_post method into my custom controller and I am unsure how to modify the get_category_posts method to also receive “tag_id” or “tag_slug” as a parameter and accept a call string like

    ?json=custom.get_category_posts&category_slug=somecategory&tag_slug=sometagslug

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks!

    http://wordpress.org/extend/plugins/json-api/

  • The topic ‘[Plugin: JSON API] Help with custom controller get_category_post function with additional parameter’ is closed to new replies.