WordPress.org

Forums

Reed Write
[resolved] Multiselect Query (5 posts)

  1. bentripp334
    Member
    Posted 3 years ago #

    Hi,

    Can you give me an example of what can be used for the query.

    thanks
    Ben

    http://wordpress.org/extend/plugins/reed-write/

  2. iambriansreed
    Member
    Plugin Author

    Posted 2 years ago #

    See the get_posts() documentation.

    http://codex.wordpress.org/Template_Tags/get_posts

  3. bentripp334
    Member
    Posted 2 years ago #

    Can you give me an example of what goes into the Options Data box?

    $args = array( 'numberposts' => 5, 'offset'=> 1, 'category' => 1 );
    or
    array( 'numberposts' => 5, 'offset'=> 1, 'category' => 1 )
    or
    'numberposts' => 5, 'offset'=> 1, 'category' => 1

  4. iambriansreed
    Member
    Plugin Author

    Posted 2 years ago #

    You need to put in the string version of the query:

    numberposts=5&offset=1category=1

  5. iambriansreed
    Member
    Plugin Author

    Posted 2 years ago #

    Actually that should be:

    numberposts=5&offset=1&category=1

    See http://codex.wordpress.org/Class_Reference/WP_Query#Parameters

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags