Code Monkey home page Code Monkey logo

extended-taxos's Introduction

extended-taxos's People

Contributors

johnbillion avatar kala725 avatar lucatume avatar simonwheatley avatar spacedmonkey avatar vinkla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extended-taxos's Issues

Change Taxonomy Template

How about an option to change the default taxonomy template. Often I'll have a taxonomy for one particular post type, and I like to use the same archive for both the main post type archive and the related taxonomy.

Select multiple

Hi John,

Thanks for the great library, it's extremely useful for developers like me who mainly do front-end stuff.

Explanations

I would like to know if it's possible to somehow add the multiple attribute to the existing select dropdown. It looks like you're using the wp_dropdown_categories function, but I see no option to turn it into a select multiple.

Why am I asking for this?

I prefer to use Select2 or Selectize.js rather the built-in default multiple checkbox thingy, mainly because I want it to be searchable.

image

Cheers

Error when passing custom plural label

Hi,

When I try to pass a custom label as the 4th parameter of register_extended_taxonomy I get the following:

Notice: register_extended_taxonomy was called <strong>incorrectly</strong>. Name parameters should be passed as an associative array. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 1.5.) in /srv/www/webipack/htdocs/wp-includes/functions.php on line 3560

Thanks.

Advanced options, initial terms, default term, multiple, editable

Something I've implemented before would be the ability to define a taxonomy like post formats, I don't think it'd be hard to port over so I'll give it a go at some point but let's see what you think of the potential implementation, using regular taxonomy args:

register_taxonomy( 'name', 'post', [
   'terms' => [ 'slug' => 'Name', 'slug2' => 'Name 2' ], // Default terms
   'default' => 'slug', // mimics behaviour of 'Uncategorized'
   'multiple' => false, // Prevents selection of more than one term, sets walker to radio
   'editable' => false, // makes the terms uneditable via the admin, code only - if true forces 'terms' to exist & prevents their removal
] );

Admin Notice Warning

The plugin also throws this admin warning message when activated:

The plugin generated 1074 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

Granted I have Extended CPTs activating at the same time and therefore it could be from within that plugin.

Default taxonomy option

It would be nice to have an option that creates an drop down in the admin terminal that creates "Default $taxomony". This would work the same at the default category and post format on the writing option panel.

Strict Standards Warnings

With WordPress 3.6 the plugin seems to be throwing 3 different Strict Standards warnings:

Strict Standards: Declaration of Walker_ExtendedTaxonomyCheckboxes::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in .../extended-taxos.php on line 604

Strict Standards: Declaration of Walker_ExtendedTaxonomyRadios::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in .../extended-taxos.php on line 702

Strict Standards: Declaration of Walker_ExtendedTaxonomyDropdown::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in .../extended-taxos.php on line 799

As expected they only show when WP_DEBUG is set to true.

Walker missing

Hi!
When using the plugin as a package loaded via Composer the class Walker that extended-taxos extends, is missing.

Admin Columns for Taxonomies

With the term meta coming in 4.4. could something similar to the CPT admin columns be added to this plugin?

admin_cols' => array(
        'featured_image' => array(
            'title'          => 'Illustration',
            'featured_image' => 'thumbnail'
        ),
        'published' => array(
            'title'       => 'Published',
            'meta_key'    => 'published_date',
            'date_format' => 'd/m/Y'
        ),
        'genre' => array(
            'taxonomy' => 'genre'
        )
    )

So it would take effect here:

alt text

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.