GithubHelp home page GithubHelp logo

Comments (2)

t-hamano avatar t-hamano commented on July 20, 2024

Thanks for the report.

From my understanding, the fact that a taxonomy with publicly_queryable set to false can be selected on the editor side seems to be a bug in itself.

For example, the blocks below filter only taxonomies for which publicly_queryable is true.

Next post / Previous post:

https://github.com/WordPress/gutenberg/blob/9a8984afb45df1635b2a5048b33e8ab9f95bff27/packages/block-library/src/post-navigation-link/edit.js#L79-L86

Post Terms:

https://github.com/WordPress/gutenberg/blob/9a8984afb45df1635b2a5048b33e8ab9f95bff27/packages/block-library/src/post-terms/edit.js#L50-L58

On the other hand, the Query Loop block does not take publicly_queryable into account:

https://github.com/WordPress/gutenberg/blob/9a8984afb45df1635b2a5048b33e8ab9f95bff27/packages/block-library/src/query/utils.js#L130-L144

from gutenberg.

eric-michel avatar eric-michel commented on July 20, 2024

Thanks for the quick reply! I did consider that it might be a bug that non-publicly-queryable taxonomies would appear in the filter at all. However, I'm hoping this will be fixed such that they can be reliably used.

I think it makes sense for non-publicly-queryable taxonomies to be hidden from the Post Terms block (why publicly display terms that are not public?) but there are many applications in which I'd like to filter a query block based on an otherwise-hidden taxonomy. I'm actually dealing with that circumstance right now, which is how I discovered this issue.

from gutenberg.

Related Issues (20)

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.