This article explains how to use the available shortcodes in Init Press version 1.0.2 and how to apply them properly within your content for blog posts, landing pages, or documentation.
Button Shortcode
The [button] shortcode allows you to create clean, centered call-to-action buttons using the UIkit interface. This shortcode is suitable for important links such as about pages, downloadable resources, or external websites.
The button is displayed in a large, pill-shaped style, and the system automatically handles external links by adding the necessary attributes to ensure security and SEO best practices.
Basic usage:
[button link="https://example.com" text="Learn more"]
If the link points to an external website, Init Press will automatically add target="_blank" along with appropriate rel attributes. Internal links will keep the default structure without modification.
Post Shortcode
The [post] shortcode allows you to embed a specific post directly into your content. This feature is especially useful when highlighting related articles, featured posts, or recommended reading.
The display layout is intentionally minimal: the featured image appears on the left, while the title and short excerpt are shown on the right. Content is trimmed to maintain a clean and readable layout.
Embed a post by ID:
[post id="123"]
Embed a post by slug:
[post slug="hello-world"]
If a manual excerpt is provided, the system will prioritize it. Otherwise, Init Press will automatically generate a short excerpt from the post content.
Note Shortcode
The [note] shortcode is used to display notes, warnings, or additional contextual information directly within your content. It is built on UIkit alerts and helps improve content clarity and scannability.
The [note] shortcode supports primary, success, warning, and danger styles, and optionally allows icons to visually reinforce the message.
Example usage:
[note type="warning" icon="warning"]Init Press does not use a Page Builder.[/note]
You can use the note shortcode to emphasize important information, provide technical warnings, or add helpful context without disrupting the overall layout.
Usage Notes
Shortcodes should be used selectively to keep content clear and well-structured. The [button] shortcode works best for primary actions, while the [post] shortcode helps guide readers toward related content.
The [note] shortcode is ideal for explanations, cautions, or highlighting critical information, but should not be overused in short sections.
With a strong focus on performance and readability, Init Press keeps its shortcode system intentionally simple. Future versions may introduce additional shortcodes or advanced options only when they provide real value.
Comments