Shortcodes Generator


Use this tool to create custom code for Shortcodes with add_shortcode() function.


  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your project.
  • Or save it as a snippet and share with the community.
Shortcode tag in the content.
e.g. [tag]
The function used in the code.
Self-closing shortcode: [tag]
Enclosing shortcode: [tag]content[/tag]
Enable attributes such as
[tag foo="123" bar="456"].
Use "shortcode_atts_{$shortcode}" filter, to allow shortcode attributes filtering.
Set custom filter name.
Attribute name. Lowercase.
Default value.
e.g. [tag attr_name="default_value"]
Attribute name. Lowercase.
Default value.
Attribute name. Lowercase.
Default value.
Custom code to generate the output.
Should only "return" the text, never produce the output directly.
  Save Snippet
// Add Shortcode
function sezon_niski() {

	$sezon_niski .=  get_field('sezon_niski', 'option');
		$sezon .= '<div class="pricing-box  cp-right pricing-box-featured pricing-box-box"><div class="plan-header"><h2>Sezon niski</h2><div class="price"><span>'. $sezon_niski .'</span><sup class="currency">PLN</sup><sup class="period"></sup></div><hr class="hr_color"><p class="subtitle"><big>Cena za&nbsp;dobę</big></p></div><div class="plan-inside"><p></p>
	<li>od&nbsp;1 października do&nbsp;15 kwietnia</li>
	<li>min. okres wynajmu kampera to&nbsp;3 dni</li>
		return $sezon;

add_shortcode( 'sezon_niski', 'sezon_niski' );