Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide automatic links to block examples or other block examples #54

Open
2 tasks
bobbingwide opened this issue Feb 27, 2021 · 0 comments
Open
2 tasks
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

Similar to the variations links, where we use the blockinfo block to display links to variations of the block, it would be nice to display (other) examples for a Block or other Block examples for a Block example.

Requirement

  • For a Block display a list of links to (other) block examples, if there are any.
  • For a Block example display a list of links to other block examples, if there are any.
  • Do this automatically for each Block or Block example
  • Don't display a heading if there aren't any results.

Proposed solution

  • A template part for other_block_examples
  • Implementation to make use of the [bw_related] shortcode.

bw_related shortcode

For Blocks the bw_related shortcode that's required is:

[bw_related post_type=block_example]

For other Block examples we can implement the equivalent of this shortcode

[bw_related post_type=block_example meta_key=_block_ref meta_value=_block_ref]
@bobbingwide bobbingwide added the enhancement New feature or request label Feb 27, 2021
@bobbingwide bobbingwide self-assigned this Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant