Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shortcode im Theme verankern
<?php
// Macht den Shortcode innerhalb des Theme ausfürbar, Inhalt
$content = apply_filters('the_content', get_the_content());
$content = '[effekt type="zoom" duration="1"]' . $content . '[/effekt]';
$content = do_shortcode($content);
echo $content;
// Macht den Shortcode innerhalb des Theme ausfürbar, Auszug
$excerpt = apply_filters('the_excerpt', get_the_excerpt());
$excerpt = '[effekt type="zoom" duration="1"]' . $excerpt . '[/effekt]';
$excerpt = do_shortcode($excerpt);
echo $excerpt;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.