Theme Shortcodes
[logo]
Displays a logo from ACF options or falls back to the blog title if no logo is set.
Parameters:
- link (Boolean, optional) - If true, wraps the logo in a link to the homepage. Default: true.
- logo-type (String, optional) - Specifies logo type: "default", "light", or "custom". Default: "default".
- width (String, optional) - Sets logo width (e.g., "200px"). Default: "200px".
- custom-logo-id (Int, optional) - ID of a custom logo image if "logo-type" is set to "custom". Default: false.
- align (String, optional) - Alignment of the logo: "auto", "left", "center", or "right". Default: "auto".
Returns: String - HTML output for the logo image or the blog title if no logo is set.
[opening-hours]
Displays opening hours from ACF options.
Requirements: Advanced Custom Fields (ACF) plugin.
Returns: HTML output for the opening hours or an error message if ACF is not enabled.
[company-name]
Displays the company name from ACF options.
Requirements: Advanced Custom Fields (ACF) plugin.
Returns: HTML output for the company name or an error message if ACF is not enabled.
[phone]
Displays the telephone number from ACF options, optionally as a link.
Parameters:
- link (Boolean, optional) - If true, wraps the number in a clickable link. Default: false.
Returns: HTML output for the telephone number or an error message if ACF is not enabled.
[fax]
Displays the fax number from ACF options.
Requirements: Advanced Custom Fields (ACF) plugin.
Returns: HTML output for the fax number or an error message if ACF is not enabled.
[e-mail]
Displays the email address from ACF options as a clickable link.
Requirements: Advanced Custom Fields (ACF) plugin.
Returns: HTML output for the email address or an error message if ACF is not enabled.
[address]
Displays the address from ACF options in either vertical or horizontal format.
Parameters:
- country (String, optional) - Shows country if set to "show". Default: "hide".
- format (String, optional) - Sets layout: "vertical" or "horizontal". Default: "vertical".
- separator (String, optional) - Separator for horizontal layout. Default: ", ".
Returns: HTML output for the address or an error message if ACF is not enabled.
[current-year]
Displays the current year.
Returns: The current year as a plain text.
[urlaub]
Zeigt Urlaubstage repeater aus acf options.
Returns: Urlaubstage als HTML Reihen
[searchform]
Displays an AJAX-based search form.
Parameters:
- post_types (String, optional) - Specifies post types to search, comma separated "post, page, cpt, etc". Default: "any".
- anzahl (Integer, optional) - Number of results to display. Default: 10.
- button-text (String, optional) - Text for the search button, or "icon" for an icon-only button, or "none" to hide the button. Default: "icon".
- id (String, optional) - Unique identifier for the search form. Default: auto-generated ID.
- placeholder (String, optional) - Placeholder text in the search input. Default: "Suchbegriff eingeben...".
Returns: HTML output for the AJAX-enabled search form with customizable button text and placeholder.
[breadcrumbs]
Generates custom breadcrumb navigation links for the current page. Suitable for various WordPress contexts, such as archives, single posts, pages, categories, tags, etc.
Parameters:
- separator (String, optional) - HTML or SVG to visually separate breadcrumb items. Default: Right-chevron SVG icon.
- home (String, optional) - Text label for the "Home" breadcrumb link. Default: "Home".
- Home: Displays a link to the homepage unless on the front page.
- Archive Pages: Displays the archive title, with support for custom post types and taxonomy archives.
- Single Posts: Includes post type archive links, categories, and displays the current post title as the last item.
- Categories, Tags, and Taxonomies: Displays category or tag name, or custom taxonomy term.
- Pages: Shows hierarchical parent pages leading up to the current page.
- Author Archives: Displays the author name.
- Search Results: Displays the search query.
- 404 Error: Shows an "Error 404" message.
- Date Archives: Displays year, month, and day as breadcrumb items based on the archive.
Returns: HTML markup for a fully accessible breadcrumb navigation with customizable separators and home link label.