Shortcode insert
-
Hi
I have a problem with creating a shortcode.
I read several documents, but I don’t get any output.in function.php:
function headertext_function( $atts , $inhalt = null ) {
return $inhalt;
}
add_shortcode( ‘headertext’, ‘headertext_function’ );
in page.php:
in the place where I want it to be with php-tagheadertext_function( 'headertext' );
in Backenend on the Start-home-page:
[headertext]
Essen in einer sch?nen und freundlichen Umwelt.
[/headertext]what am I doing wrong?
i want to display any text on the page with a shortcode.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Shortcode insert’ is closed to new replies.