sBird Post Slug Block

Plugin Banner

sBird Post Slug Block

by sysbird

Download
Description

This block is designed for use in templates in the Site Editor. It displays the current post’s slug on single posts and pages. On archive pages, it displays the slug of the current category or custom post type.
Hyphens in slugs are displayed as spaces.
You can use the displayed slug as supporting text for the page title or as a design accent.
It extends the core Paragraph block, so you can use the same styling options available to Paragraph blocks.

Usage

  1. Add the “sBird Post Slug Block” to a template in the Site Editor.
  2. You can use the block on single posts, pages, and archive pages.
  3. As with the Paragraph block, you can customize the text color, background color, font size, and typography.
  1. Upload the plugin files to the /wp-content/plugins/sbird-post-slug-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Use the site editor to add “sBird Post Slug Block” to your template.
  1. Set a slug for a post or page.

    Set a slug for a post or page.

  2. Insert the sBird Post Slug Block into a template in the Site Editor. It supports the same styles as the Paragraph block.

    Insert the sBird Post Slug Block into a template in the Site Editor. It supports the same styles as the Paragraph block.

  3. The slug is displayed on the front end.

    The slug is displayed on the front end.

1.1.2

  • Tested with WordPress 7.1.

1.1.1

  • Added nowrap styling.

1.1

  • Added margin and padding controls.

1.0

  • Hello, world!
Back to top