Better support for hidden post types
-
Hey!
The flexibility of the plugin allows a lot of use cases. I like that.
Just tried it one of mine. We want to display reviews that get stored in a custom post type. This CPT is hidden aka. ‘publicly_queryable’ => false in register_post_type(). That mean the review doesn’t have a single view.The block manages to display the reviews nicely. The only downside is that the items are wrapped in anchors even if the item doesn’t has a single view. Leading to a dead link and a bad UX.
Could you run a check if a post is publicly_queryable before the anchor tag is added?
Or less preferred a setting inside the block. Prefer automation over settings.Greetings
derRALF
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Better support for hidden post types’ is closed to new replies.