Ability to select from other post types?
-
Hi Andrew,
First, let me say thanks for creating something that fills such a simple void in the available Gutenberg blocks. It’s *almost* exactly what I needed, and not something I was confident in creating myself.
I’m wondering if it’s possible to have a drop-down that first allows you to select the post type, then select the single post from the available posts in that type?
I modified your plugin locally to query the post type for my needs, but admittedly, I’m not familiar enough with creating blocks to know how I would make that doable from the block settings (instead of modifying the code). I’m not even sure if it’s an easy or hard thing to do! In PHP it would be simple enough to query the available post types, then query the posts within the select post type, but I haven’t got the faintest idea on how to do that within the index.js code.
I think I’m going to use my locally-modified version for now, but that means I won’t be able to update the plugin moving forward… hence my asking if it’s possible to add the option to select the post type first.
Thanks! ??
- The topic ‘Ability to select from other post types?’ is closed to new replies.