Tag Info

New answers tagged

0

According to Codex: This will create [foobar] shortcode that returns as: foo and bar With attributes: // [bartag foo="foo-value"] function bartag_func( $atts ) { $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); return "foo = {$a['foo']}"; } add_shortcode( 'bartag', ...



Top 50 recent answers are included