Title: Modify query arguments
Last modified: March 17, 2018

---

# Modify query arguments

 *  [berry metal](https://wordpress.org/support/users/erikalleman/)
 * (@erikalleman)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/modify-query-arguments/)
 * [https://wpexplorer-themes.com/total/snippets/total-grid-query-filter/](https://wpexplorer-themes.com/total/snippets/total-grid-query-filter/)
 * The query in this snippet shows items from the same category in a WPBakery (formerly
   Visual Composer) post grid module added to portfolio posts.
 * I need it to show items from the same category of the current post (normal post,
   not portfolio post) in a post grid module added to the sidebar.
 * While this specific snippet is for the Total theme, the query tweak is independent
   of the theme, so this question is of common interest for the community.
 * How do I modify the query to suit my needs?
 * Thank you.
    -  This topic was modified 8 years, 2 months ago by [berry metal](https://wordpress.org/support/users/erikalleman/).

The topic ‘Modify query arguments’ is closed to new replies.

## Tags

 * [arguments](https://wordpress.org/support/topic-tag/arguments/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [berry metal](https://wordpress.org/support/users/erikalleman/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/modify-query-arguments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
