Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 745 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 745 Bytes

salcodes

A WordPress plugin to show how shortcodes work. This demo plugin is a companion piece to Kinsta's ultimate guide on shortcodes. It includes 3 unique examples with increasing complexities, demonstrating how different types of shortcodes are created.

1. Output the Current Year

  • Shortcode Tag: [current_year]
  • Type: Self-closing
  • Attributes: None

2. Insert a Call to Action Button

  • Shortcode Tag: [cta_button]
  • Type: Self-closing
  • Attributes: link | id | color | size | label | target

3. Wrap Content around a Titled Colorful Box

  • Shortcode Tag: [boxed]
  • Type: Enclosing
  • Attributes: title | title_color | color