GithubHelp home page GithubHelp logo

isabella232 / wp-query-multiple-taxonomies Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sayhellogmbh/wp-query-multiple-taxonomies

0.0 0.0 0.0 307 KB

WordPress plugin for allowing advanced taxonomy queries.

Home Page: http://wordpress.org/plugins/query-multiple-taxonomies/

PHP 88.66% HTML 11.34%

wp-query-multiple-taxonomies's Introduction

Query Multiple Taxonomies

Contributors: scribu
Tags: drill-down, query, widget, navigation, taxonomy
Requires at least: 3.2
Tested up to: 3.5
Stable tag: 1.6.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Filter posts through multiple taxonomies.

Description

This plugin lets you do faceted search using multiple custom taxonomies.

It has a drill-down widget with multiple display modes.

Said widget is easily customizable via template files (no PHP knowledge required).

Sponsors

No Support

I do not offer any support for this plugin (free or paid).

Please consider using an alternative plugin.

Links: Documentation | Plugin News | Author's Site

Screenshots

  1. Lists mode
  2. Checkboxes mode
  3. Dropdowns mode
  4. Widget configuration

How can I order the taxonomies in the widget?

Just drag them around.

How do I define a custom taxonomy?

Try the Simple Taxonomies plugin.

Is there a template tag I can use instead of widgets?

You can use the_widget(), like so:

the_widget('Taxonomy_Drill_Down_Widget', array( 'title' => '', 'mode' => 'dropdowns', 'taxonomies' => array( 'post_tag', 'color' ) // list of taxonomy names ));

'mode' can be one of 'lists' or 'dropdowns'

How can I customize the display?

The template hierarchy for multitax queries is taxonomy.php -> archive.php -> index.php.

If you need to get specific, you can use the is_multitax() conditional tag, which works similarly to is_tax():

is_multitax() -> true if more than one taxonomy was queried.

is_multitax( array('tax_a', 'tax_b') ) -> true if both tax_a and tax_b were queried.

How can I customize the display even further?

Copy any file from the templates directory into a directory called qmt-templates in your theme and modify it at will.

For example to change the checkbox mode display,

copy

wp-content/plugins/query-multiple-taxonomies/templates/checkboxes.html

to

wp-content/themes/YOUR-THEME/qmt-templates/checkboxes.html

and change it however you want.

Changelog

1.6.3 (next)

  • fixed parent term post count. props wxyjp
  • fixed term name enconding issue
  • added French translation. props flameboy

1.6.2

  • {{count}} tag improvements. props tiagoalves83 and jprberlin
  • added {{any-text}} tag. props jprberlin
  • updated to Mustache 1.0.0

1.6.1

  • fixed activation error
  • fixed error in PHP 5.4

1.6

  • added checkbox mode
  • added {{count}} tag. props khakulov
  • added Ukranian translation. props Jurko Chervony
  • more info

1.5.1

  • fixed issue with custom post types

1.5

  • easy customization, using Mustache templates
  • bring back wp_title filtering
  • fix qmt_get_query() not working with the 'AND' tax_query operator
  • more info

1.4

  • WordPress 3.1 compatibility (native taxonomy handling)
  • sortable taxonomy list
  • widget not affected by non-active taxonomies anymore
  • dropdowns display hierarchical taxonomies correctly
  • more info

1.3.2

  • fixed URL problems

1.3.1

  • dropdowns displays hierarchical taxonomies correctly
  • various bugfixes

1.3

  • multiple taxonomies per widget
  • introduced dropdowns mode
  • is_multitax() accepts a list of taxonomies to check
  • fixed a lot of query errors
  • more info

1.2.3

  • fixed problems with custom menus
  • fixed a problem with categories

1.2.2

  • fixed fatal error
  • reverted is_multitax() to previous behaviour

1.2.1

  • fixed issue when site url isn't the same as the wp url
  • fixed issue when doing a single taxonomy query

1.2

  • fewer queries
  • custom post type support
  • load correct template for single category|tag|term archives
  • more info

1.1.1

  • better title generation
  • add ro_RO l10n

1.1

  • allow ?tax=foo+bar (AND) queries
  • add taxonomy drill-down widget
  • more info

1.0

wp-query-multiple-taxonomies's People

Contributors

8ig8 avatar cipo28 avatar j0r1sk avatar jmslbam avatar phillbrown avatar scribu avatar

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.