Giter VIP home page Giter VIP logo

query-wrangler's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.