Skip to content

A Query page and widget creator for Wordpress. Based on Drupal Views

Notifications You must be signed in to change notification settings

daggerhart/query-wrangler

Repository files navigation

Query Wrangler

Query Wrangler is a WordPress plugin that provides an intuitive interface for creating complex WP queries as shortcodes and widgets. UI based on Drupal Views.

This plugin lets you create new WP queries as widgets, and use shortcodes for to show queries in your content. Additionally, it allows you to override the way category and tag pages display without editing tempalte files.

Supports:

  • Most post data, including meta fields
  • Taxonomy data
  • Advanced Custom Fields
  • Custom Content Type Manager
  • Some exposed filters

Some examples of how you would use this plugin include:

  • Create a list posts with featured images
  • Create a list of pages or posts within a specific category or tag
  • Create an image gallery
  • Modify the way your category pages look

Frequently Asked Questions

How do I use query shortcodes?

Easy, the code you're looking for is like this. [query id=2] , where the number 2 is the query id. When viewing the list of queries each one will have 2 options for shortcode. One that uses the query's id, and the other using the query's slug. I recommend using the query's slug for future maintainability.

  • By id: [query id=2]
  • By slug: [query slug="my-query"]
  • Customize WP_Query arguments: [query id=2 args="posts_per_page=1&post_type=page"]
  • Customize WP_Query arguments with contextual data: [query id=1 args="author={{post:post_author}}&post_type={{post:post_type}}"]

What are overrides and how do I use them?

Overrides allow you to alter the display and information given on category and tag archive pages.

For a simple example, add a new query and chose the type override. Choose how you want the content to display, then examine the Overrides box in the center column. From there you can add taxonomies and terms this query will override.

Other