Title: [Plugin: WordPress Loop] custom_query_args documentation?
Last modified: August 19, 2016

---

# [Plugin: WordPress Loop] custom_query_args documentation?

 *  [allancole](https://wordpress.org/support/users/allancole/)
 * (@allancole)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/)
 * I’m trying to display a page using the WordPress Loop plugin widget.
 * I have the _post\_type_ set to “PAGE” and I’m attempting to add my own parameters
   and select a page using the page_iD, **query_posts** parameter and the _custom\
   _query\_arg_ option.
 * I’ve tried both
    `'page_id' => 23` and `page_id=23` but neither seems to work.
   I’ve tried a few other query arguments, but none of them seem to work either.
 * Am I doing this correctly?
    Is there any documentation that shows how the _custom\
   _query\_arg_ option should be used?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/#post-1378639)
 * I believe there might be a bug in the wordpress-loop.php script. If I’m reading
   it right then line 135 of that script:
 *     ```
       $args[] = wp_parse_args( $custom_args, $args );
       ```
   
 * should be:
 *     ```
       $args = wp_parse_args( $custom_args, $args );
       ```
   
 * And since Ptah has a comment in the script that says:
 *     ```
       //add custom query args, overrides anything, even the world!
       ```
   
 * then your custom_query_args would be something like this:
 *     ```
       caller_get_posts=1&post_type=page&post_status=publish&p=23
       ```
   
 *  [Ptah.ai](https://wordpress.org/support/users/ptahdunbar/)
 * (@ptahdunbar)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/#post-1378785)
 * `page_id=23` works for me. Make sure that page id is valid. And are you using
   the latest WP Loop version?
 * For the record, `custom_query_args` works like this:
    `caller_get_posts=1&author
   =1&post_type=page&post_status=publish&orderby=title&order=ASC`
 *  [roburdick](https://wordpress.org/support/users/roburdick/)
 * (@roburdick)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/#post-1378850)
 * Hi,
 * I love this plug-in! Does anyone know if there might be a way of avoiding duplicate
   posts. I want to use a loop in my sidebar widget area next to a single page post,
   and would like to not repeat the post that’s in the main single post area.
 * Thanks
 *  [tbo460](https://wordpress.org/support/users/thibotus01/)
 * (@thibotus01)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/#post-1378861)
 * Doesn’t work for me either…

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

The topic ‘[Plugin: WordPress Loop] custom_query_args documentation?’ is closed 
to new replies.

 * 4 replies
 * 5 participants
 * Last reply from: [tbo460](https://wordpress.org/support/users/thibotus01/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-loop-custom_query_args-documentation/#post-1378861)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
