Giter VIP home page Giter VIP logo

taxonomy_single_term's People

Contributors

binarykitten avatar blobaugh avatar carlfj avatar codemascot avatar figureone avatar gregrickaby avatar jchristopher avatar jtsternberg avatar justinsainton avatar mallowcat avatar michaelcurry avatar tw2113 avatar vvmsoft 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taxonomy_single_term's Issues

Plans for Block Editor

It would be really nice to clarify the long-term plans for this repo. Are there any plans to update all features to work with the block editor?

Does not work on Quick Edit screen

Terms are displayed as checkboxes instead of radios when using Quick Edit.

However, radios are correctly displayed when using Bulk Edit.

default term not working

both
$custom_tax_mb->set( 'default', 'for-sale' ); and $custom_tax_mb->set( 'default', 'For Sale' ); don't seem to work. Is there some way I can debug this? or are there additional settings I need to apply? I've tried for both existing posts and for new posts and no default is selected.

Behavior of $force_selection on Radios

I just tried to use $custom_tax_mb->set( 'force_selection', true ); with radios and was surprised by the behavior to the point that I'm not sure it's right.

When $force_selection is set to false for radios, a hidden "None" option is added. When true, that option is gone but there is still no default selection of the first taxonomy term. I expected that the behavior would be more like the select implementation where the first option is defaulted to when $force_selection is true instead of a "none" option.

As it stands, I don't think $force_selection actually results in any difference in the post's term assignment when using radios.

conflict with wordpress seo plugin metabox

Here's a tricky one. This directly conflicts with Yoasts WP SEO metabox on the CPT I'm using this on. I remove the radio class stuff... fixes the problem. I don't see it being a css problem as I tested w/ inspector.

He recently rewrote a bunch and it's now on 1.5.2.1. https://github.com/Yoast/wordpress-seo

kind of stuck on the issue. looking to you guys for some help

Does not save multiple terms in bulk

When I try to use the quick edit screen it works only if I save one term. When I try saving multiple terms I get this error:

PHP Notice: Undefined property: WP_Error::$slug in C:\xampp\htdocs\wp-tests\wp-content\plugins\referral-system-for-woocommerce\vendor\webdevstudios\taxonomy_single_term\class.taxonomy-single-term.php on line 564

Documentation fix: Custom title should use metabox_title, not context property

I noticed this little documentation issue when implementing Taxonomy Single Term in a project.

On the docs page:

// Custom title for your metabox
$custom_tax_mb->set( 'context', __( 'Custom Metabox Title', 'yourtheme' ) );

Correction:

// Custom title for your metabox
$custom_tax_mb->set( 'metabox_title', __( 'Custom Metabox Title', 'yourtheme' ) );

Cheers!

Support Checkboxes

Hi,

it would be great if the Taxonomy_Single_Term can also support checkboxes. Think of features for real estates like pool, heater, and so on.

Gutenberg hide built-in term meta box

In WP 5 with Gutenberg remove_meta_box doesn't seem to have any effect anymore.

The following workaround from WordPress/gutenberg#6912 (comment) might temporarily fix this. I slightly adapted it to hide the post_tag metabox instead of the category meta box from the original snippet.

/**
 * Disable display of Gutenberg Post Setting UI for a specific
 * taxonomy. While this isn't the official API for this need,
 * it works for now because only Gutenberg is dependent on the
 * REST API response.
 */
add_filter( 'rest_prepare_taxonomy', function( $response, $taxonomy ){
	if ( 'post_tag' === $taxonomy->name ) {
		$response->data['visibility']['show_ui'] = false;
	}
	return $response;
}, 10, 2 );

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.