WordPress.org

Ready to get started?Download WordPress

Forums

XMLRPC Fields Filtering (1 post)

  1. expr3ss
    Member
    Posted 1 year ago #

    Hi there

    I'm new here (and to WP). So please be kind :s

    I'm using XMLRPC to successfully return XML of posts (wp.getPosts) but I'm having difficulty in working out how to restrict or filter the returned XML

    I've searched and searched (both here and elsewhere) and I'm clearly missing something obvious.

    I'm trying various arguments in $params e.g.

    function getPosts()
    {
    $params = array(0,$this->UserName,$this->PassWord, array('post_id'));
    return $this->send_request('wp.getPosts',$params);
    }

    but can't seem to crack the combination or find a worked example, try as I may.

    Would someone please reach out and help me?

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic