{"id":12480,"date":"2016-03-30T15:09:31","date_gmt":"2016-03-30T15:09:31","guid":{"rendered":"https:\/\/de.wordpress.org\/support\/2016\/03\/30\/fehlermeldung-cannot-redeclare-get_subcategory_terms\/"},"modified":"2016-03-30T15:09:31","modified_gmt":"2016-03-30T15:09:31","slug":"fehlermeldung-cannot-redeclare-get_subcategory_terms","status":"publish","type":"topic","link":"https:\/\/de.wordpress.org\/support\/topic\/fehlermeldung-cannot-redeclare-get_subcategory_terms\/","title":{"rendered":"Fehlermeldung  Cannot redeclare get_subcategory_terms()"},"content":{"rendered":"<p>Ich habe gerade an der functions.php rumgespielt, da ich Kategorien in meinem Shop (WooCommerce) ausblenden wollte. Wenn ich jetzt auf Datei aktualisieren klicke kommt diese Fehlermeldung: <code>Fatal error: Cannot redeclare get_subcategory_terms() (previously declared in \/www\/htdocs\/w0137581\/rosengarten2005.de\/wordpress\/wp-content\/themes\/retrotale\/functions.php:414) in \/www\/htdocs\/w0137581\/rosengarten2005.de\/wordpress\/wp-content\/themes\/retrotale\/functions.php on line 448<\/code> Meiner Meinung nach habe ich aber gar keine 448 Zeilen?<br \/>\nHier ist meine functions.php :<\/p>\n<pre><code>&lt;?php\n\/**\n * RetroTale functions and definitions.\n * @package RetroTale\n * @since RetroTale 1.0.0\n*\/\n\n\/**\n * RetroTale theme variables.\n *\n*\/\n$retrotale_themename = &quot;RetroTale&quot;;\t\/\/Theme Name\n$retrotale_themever = &quot;1.1.1&quot;;\t\t\t\/\/Theme version\n$retrotale_shortname = &quot;retrotale&quot;;\t\/\/Shortname\n$retrotale_manualurl = get_template_directory_uri() . &#039;\/docs\/documentation.html&#039;;\t\/\/Manual Url\n\/\/ Set path to RetroTale Framework and theme specific functions\n$retrotale_be_path = get_template_directory() . &#039;\/functions\/be\/&#039;;\t\t\t\t\t\t\t\t\t\/\/BackEnd Path\n$retrotale_fe_path = get_template_directory() . &#039;\/functions\/fe\/&#039;;\t\t\t\t\t\t\t\t\t\/\/FrontEnd Path\n$retrotale_be_pathimages = get_template_directory_uri() . &#039;\/functions\/be\/images&#039;;\t\t\/\/BackEnd Path\n$retrotale_fe_pathimages = get_template_directory_uri() . &#039;&#039;;\t\/\/FrontEnd Path\n\/\/Include Framework [BE]\nrequire_once ($retrotale_be_path . &#039;fw-options.php&#039;);\t \t \/\/ Framework Init\n\/\/ Include Theme specific functionality [FE]\nrequire_once ($retrotale_fe_path . &#039;headerdata.php&#039;);\t\t \/\/ Include css and js\nrequire_once ($retrotale_fe_path . &#039;library.php&#039;);\t       \/\/ Include library, functions\n\n\/**\n * RetroTale theme basic setup.\n *\n*\/\nfunction retrotale_setup() {\n\t\/\/ Makes RetroTale available for translation.\n\tload_theme_textdomain( &#039;retrotale&#039;, get_template_directory() . &#039;\/languages&#039; );\n  \/\/ This theme styles the visual editor to resemble the theme style.\n  $retrotale_font_url = add_query_arg( &#039;family&#039;, &#039;Lobster&#039;, &quot;\/\/fonts.googleapis.com\/css&quot; );\n  add_editor_style( array( &#039;editor-style.css&#039;, $retrotale_font_url ) );\n\t\/\/ Adds RSS feed links to &lt;head&gt; for posts and comments.\n\tadd_theme_support( &#039;automatic-feed-links&#039; );\n\t\/\/ This theme supports custom background color and image.\n\t$defaults = array(\n\t&#039;default-color&#039; =&gt; &#039;&#039;,\n  &#039;default-image&#039; =&gt; get_template_directory_uri() . &#039;\/images\/pattern.png&#039;,\n\t&#039;wp-head-callback&#039; =&gt; &#039;_custom_background_cb&#039;,\n\t&#039;admin-head-callback&#039; =&gt; &#039;&#039;,\n\t&#039;admin-preview-callback&#039; =&gt; &#039;&#039; );\n  add_theme_support( &#039;custom-background&#039;, $defaults );\n\t\/\/ This theme supports post thumbnails.\n\tadd_theme_support( &#039;post-thumbnails&#039; );\n\tset_post_thumbnail_size( 1170, 9999 );\n  \/\/ This theme supports a custom header image.\n  $args = array(\n\t&#039;width&#039; =&gt; 2000,\n\t&#039;height&#039; =&gt; 400,\n  &#039;flex-width&#039; =&gt; true,\n  &#039;flex-height&#039; =&gt; true,\n  &#039;header-text&#039; =&gt; false,\n  &#039;random-default&#039; =&gt; true,);\n  add_theme_support( &#039;custom-header&#039;, $args );\n  \/\/ This theme supports Post formats.\n  add_theme_support( &#039;post-formats&#039;, array( &#039;aside&#039;, &#039;audio&#039;, &#039;image&#039;, &#039;status&#039;, &#039;video&#039; ) );\n  \/\/ This theme supports the Title Tag feature.\n  add_theme_support( &#039;title-tag&#039; );\n  \/\/ This theme supports the WooCommerce plugin.\n  add_theme_support( &#039;woocommerce&#039; );\n  global $content_width;\n  if ( ! isset( $content_width ) ) { $content_width = 734; }\n}\nadd_action( &#039;after_setup_theme&#039;, &#039;retrotale_setup&#039; );\n\n\/**\n * Enqueues scripts and styles for front-end.\n *\n*\/\nfunction retrotale_scripts_styles() {\n\tglobal $wp_styles, $wp_scripts, $retrotale_options_db;\n\t\/\/ Adds JavaScript\n\tif ( is_singular() &amp;&amp; comments_open() &amp;&amp; get_option( &#039;thread_comments&#039; ) )\n\t\twp_enqueue_script( &#039;comment-reply&#039; );\n    if ( $retrotale_options_db[&#039;retrotale_post_entry_format&#039;] == &#039;Grid - Masonry&#039; ) {\n    if ( is_home() || is_archive() || is_search() ) {\n    wp_enqueue_script( &#039;jquery-masonry&#039; );\n    if ( !is_rtl() ) {\n    wp_enqueue_script( &#039;retrotale-masonry-settings&#039;, get_template_directory_uri() . &#039;\/js\/masonry-settings.js&#039;, array(), &#039;1.0&#039;, true ); } else {\n    wp_enqueue_script( &#039;retrotale-masonry-settings-rtl&#039;, get_template_directory_uri() . &#039;\/js\/masonry-settings-rtl.js&#039;, array(), &#039;1.0&#039;, true ); }}}\n    wp_enqueue_script( &#039;retrotale-placeholders&#039;, get_template_directory_uri() . &#039;\/js\/placeholders.js&#039;, array( &#039;jquery&#039; ), &#039;2.0.8&#039;, true );\n    if ( $retrotale_options_db[&#039;retrotale_display_scroll_top&#039;] != &#039;Hide&#039; ) {\n    wp_enqueue_script( &#039;retrotale-scroll-to-top&#039;, get_template_directory_uri() . &#039;\/js\/scroll-to-top.js&#039;, array( &#039;jquery&#039; ), &#039;1.0&#039;, true ); }\n    if ( $retrotale_options_db[&#039;retrotale_fixed_menu&#039;] != &#039;Disable&#039; &amp;&amp; !is_page_template(&#039;template-landing-page.php&#039;) ) {\n    wp_enqueue_script( &#039;retrotale-menubox&#039;, get_template_directory_uri() . &#039;\/js\/menubox.js&#039;, array(), &#039;1.0&#039;, true ); }\n    wp_enqueue_script( &#039;retrotale-selectnav&#039;, get_template_directory_uri() . &#039;\/js\/selectnav.js&#039;, array(), &#039;0.1&#039;, true );\n    wp_enqueue_script( &#039;retrotale-responsive&#039;, get_template_directory_uri() . &#039;\/js\/responsive.js&#039;, array(), &#039;1.0&#039;, true );\n    wp_enqueue_script( &#039;retrotale-html5-ie&#039;, get_template_directory_uri() . &#039;\/js\/html5.min.js&#039;, array(), &#039;3.7.2&#039;, false );\n    $wp_scripts-&gt;add_data( &#039;retrotale-html5-ie&#039;, &#039;conditional&#039;, &#039;lt IE 9&#039; );\n\t\/\/ Adds CSS\n    wp_enqueue_style( &#039;retrotale-elegantfont&#039;, get_template_directory_uri() . &#039;\/css\/elegantfont.css&#039; );\n    wp_enqueue_style( &#039;retrotale-google-font-default&#039;, &#039;\/\/fonts.googleapis.com\/css?family=Lobster&amp;subset=latin,latin-ext&#039; );\n    if ( class_exists( &#039;woocommerce&#039; ) ) { wp_enqueue_style( &#039;retrotale-woocommerce-custom&#039;, get_template_directory_uri() . &#039;\/css\/woocommerce-custom.css&#039; ); }\n}\nadd_action( &#039;wp_enqueue_scripts&#039;, &#039;retrotale_scripts_styles&#039; );\n\n\/**\n * Backwards compatibility for older WordPress versions which do not support the Title Tag feature.\n *\n*\/\nif ( ! function_exists( &#039;_wp_render_title_tag&#039; ) ) {\nfunction retrotale_wp_title( $title, $sep ) {\n\tif ( is_feed() )\n\t\treturn $title;\n\t$title .= get_bloginfo( &#039;name&#039; );\n\t$site_description = get_bloginfo( &#039;description&#039;, &#039;display&#039; );\n\tif ( $site_description &amp;&amp; ( is_home() || is_front_page() ) )\n\t\t$title = &quot;$title $sep $site_description&quot;;\n\treturn $title;\n}\nadd_filter( &#039;wp_title&#039;, &#039;retrotale_wp_title&#039;, 10, 2 );\n}\n\n\/**\n * Register our menu.\n *\n *\/\nfunction retrotale_register_my_menu() {\n  register_nav_menu( &#039;main-navigation&#039;, __( &#039;Main Header Menu&#039;, &#039;retrotale&#039; ) );\n}\nadd_action( &#039;after_setup_theme&#039;, &#039;retrotale_register_my_menu&#039; );\n\n\/**\n * Register our sidebars and widgetized areas.\n *\n*\/\nfunction retrotale_widgets_init() {\n  register_sidebar( array(\n\t\t&#039;name&#039; =&gt; __( &#039;Right Sidebar&#039;, &#039;retrotale&#039; ),\n\t\t&#039;id&#039; =&gt; &#039;sidebar-1&#039;,\n\t\t&#039;description&#039; =&gt; __( &#039;Right sidebar which appears on all posts and pages.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;sidebar-widget %2$s&quot;&gt;&#039;,\n\t\t&#039;after_widget&#039; =&gt; &#039;&lt;\/div&gt;&#039;,\n\t\t&#039;before_title&#039; =&gt; &#039; &lt;p class=&quot;sidebar-headline&quot;&gt;&#039;,\n\t\t&#039;after_title&#039; =&gt; &#039;&lt;\/p&gt;&#039;,\n\t) );\n  register_sidebar( array(\n\t\t&#039;name&#039; =&gt; __( &#039;Footer left widget area&#039;, &#039;retrotale&#039; ),\n\t\t&#039;id&#039; =&gt; &#039;sidebar-2&#039;,\n\t\t&#039;description&#039; =&gt; __( &#039;Left column with widgets in footer.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;footer-widget %2$s&quot;&gt;&#039;,\n\t\t&#039;after_widget&#039; =&gt; &#039;&lt;\/div&gt;&#039;,\n\t\t&#039;before_title&#039; =&gt; &#039;&lt;p class=&quot;footer-headline&quot;&gt;&#039;,\n\t\t&#039;after_title&#039; =&gt; &#039;&lt;\/p&gt;&#039;,\n\t) );\n  register_sidebar( array(\n\t\t&#039;name&#039; =&gt; __( &#039;Footer middle widget area&#039;, &#039;retrotale&#039; ),\n\t\t&#039;id&#039; =&gt; &#039;sidebar-3&#039;,\n\t\t&#039;description&#039; =&gt; __( &#039;Middle column with widgets in footer.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;footer-widget %2$s&quot;&gt;&#039;,\n\t\t&#039;after_widget&#039; =&gt; &#039;&lt;\/div&gt;&#039;,\n\t\t&#039;before_title&#039; =&gt; &#039;&lt;p class=&quot;footer-headline&quot;&gt;&#039;,\n\t\t&#039;after_title&#039; =&gt; &#039;&lt;\/p&gt;&#039;,\n\t) );\n  register_sidebar( array(\n\t\t&#039;name&#039; =&gt; __( &#039;Footer right widget area&#039;, &#039;retrotale&#039; ),\n\t\t&#039;id&#039; =&gt; &#039;sidebar-4&#039;,\n\t\t&#039;description&#039; =&gt; __( &#039;Right column with widgets in footer.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;before_widget&#039; =&gt; &#039;&lt;div id=&quot;%1$s&quot; class=&quot;footer-widget %2$s&quot;&gt;&#039;,\n\t\t&#039;after_widget&#039; =&gt; &#039;&lt;\/div&gt;&#039;,\n\t\t&#039;before_title&#039; =&gt; &#039;&lt;p class=&quot;footer-headline&quot;&gt;&#039;,\n\t\t&#039;after_title&#039; =&gt; &#039;&lt;\/p&gt;&#039;,\n\t) );\n  register_sidebar( array(\n\t\t&#039;name&#039; =&gt; __( &#039;Footer notices&#039;, &#039;retrotale&#039; ),\n\t\t&#039;id&#039; =&gt; &#039;sidebar-5&#039;,\n\t\t&#039;description&#039; =&gt; __( &#039;The line for copyright and other notices below the footer widget areas. Insert here one Text widget. The &quot;Title&quot; field at this widget should stay empty.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;before_widget&#039; =&gt; &#039;&lt;div class=&quot;footer-signature&quot;&gt;&lt;div class=&quot;footer-signature-content&quot;&gt;&#039;,\n\t\t&#039;after_widget&#039; =&gt; &#039;&lt;\/div&gt;&lt;\/div&gt;&#039;,\n\t\t&#039;before_title&#039; =&gt; &#039;&#039;,\n\t\t&#039;after_title&#039; =&gt; &#039;&#039;,\n\t) );\n}\nadd_action( &#039;widgets_init&#039;, &#039;retrotale_widgets_init&#039; );\n\n\/**\n * Post excerpt settings.\n *\n*\/\nfunction retrotale_custom_excerpt_length( $length ) {\nglobal $retrotale_options_db;\nif ($retrotale_options_db[&#039;retrotale_excerpt_length&#039;] != &#039;&#039;) {\nreturn $retrotale_options_db[&#039;retrotale_excerpt_length&#039;];\n} else { return 40; }\n}\nadd_filter( &#039;excerpt_length&#039;, &#039;retrotale_custom_excerpt_length&#039;, 20 );\nfunction retrotale_new_excerpt_more( $more ) {\nglobal $post;\nreturn &#039;...&lt;br \/&gt;&lt;a class=&quot;read-more-button&quot; href=&quot;&#039;. esc_url( get_permalink($post-&gt;ID) ) . &#039;&quot;&gt;&#039; . __( &#039;Read more&#039;, &#039;retrotale&#039; ) . &#039;&lt;\/a&gt;&#039;;}\nadd_filter( &#039;excerpt_more&#039;, &#039;retrotale_new_excerpt_more&#039; );\n\nif ( ! function_exists( &#039;retrotale_content_nav&#039; ) ) :\n\/**\n * Displays navigation to next\/previous pages when applicable.\n *\n*\/\nfunction retrotale_content_nav( $html_id ) {\n\tglobal $wp_query;\n\t$html_id = esc_attr( $html_id );\n\tif ( $wp_query-&gt;max_num_pages &gt; 1 ) : ?&gt;\n\t\t&lt;div id=&quot;&lt;?php echo $html_id; ?&gt;&quot; class=&quot;navigation&quot; role=&quot;navigation&quot;&gt;\n    &lt;div class=&quot;navigation-inner&quot;&gt;\n\t\t\t&lt;h2 class=&quot;navigation-headline section-heading&quot;&gt;&lt;?php _e( &#039;Post navigation&#039;, &#039;retrotale&#039; ); ?&gt;&lt;\/h2&gt;\n      &lt;div class=&quot;nav-wrapper&quot;&gt;\n\t\t\t &lt;p class=&quot;navigation-links&quot;&gt;\n&lt;?php $big = 999999999;\necho paginate_links( array(\n\t&#039;base&#039; =&gt; str_replace( $big, &#039;%#%&#039;, esc_url( get_pagenum_link( $big ) ) ),\n\t&#039;format&#039; =&gt; &#039;?paged=%#%&#039;,\n\t&#039;current&#039; =&gt; max( 1, get_query_var(&#039;paged&#039;) ),\n  &#039;prev_text&#039; =&gt; __( &#039;&amp;larr; Previous&#039;, &#039;retrotale&#039; ),\n\t&#039;next_text&#039; =&gt; __( &#039;Next &amp;rarr;&#039;, &#039;retrotale&#039; ),\n\t&#039;total&#039; =&gt; $wp_query-&gt;max_num_pages,\n\t&#039;add_args&#039; =&gt; false\n) );\n?&gt;\n        &lt;\/p&gt;\n      &lt;\/div&gt;\n\t\t&lt;\/div&gt;\n    &lt;\/div&gt;\n\t&lt;?php endif;\n}\nendif;\n\n\/**\n * Displays navigation to next\/previous posts on single posts pages.\n *\n*\/\nfunction retrotale_prev_next($nav_id) { ?&gt;\n&lt;?php $retrotale_previous_post = get_adjacent_post( false, &quot;&quot;, true );\n$retrotale_next_post = get_adjacent_post( false, &quot;&quot;, false ); ?&gt;\n&lt;div id=&quot;&lt;?php echo $nav_id; ?&gt;&quot; class=&quot;navigation&quot; role=&quot;navigation&quot;&gt;\n\t&lt;div class=&quot;nav-wrapper&quot;&gt;\n&lt;?php if ( !empty($retrotale_previous_post) ) { ?&gt;\n  &lt;p class=&quot;nav-previous&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url(get_permalink($retrotale_previous_post-&gt;ID)); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr($retrotale_previous_post-&gt;post_title); ?&gt;&quot;&gt;&lt;?php _e( &#039;&amp;larr; Previous post&#039;, &#039;retrotale&#039; ); ?&gt;&lt;\/a&gt;&lt;\/p&gt;\n&lt;?php } if ( !empty($retrotale_next_post) ) { ?&gt;\n\t&lt;p class=&quot;nav-next&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url(get_permalink($retrotale_next_post-&gt;ID)); ?&gt;&quot; title=&quot;&lt;?php echo esc_attr($retrotale_next_post-&gt;post_title); ?&gt;&quot;&gt;&lt;?php _e( &#039;Next post &amp;rarr;&#039;, &#039;retrotale&#039; ); ?&gt;&lt;\/a&gt;&lt;\/p&gt;\n&lt;?php } ?&gt;\n   &lt;\/div&gt;\n&lt;\/div&gt;\n&lt;?php } \n\nif ( ! function_exists( &#039;retrotale_comment&#039; ) ) :\n\/**\n * Template for comments and pingbacks.\n *\n*\/\nfunction retrotale_comment( $comment, $args, $depth ) {\n\t$GLOBALS[&#039;comment&#039;] = $comment;\n\tswitch ( $comment-&gt;comment_type ) :\n\t\tcase &#039;pingback&#039; :\n\t\tcase &#039;trackback&#039; :\n\t?&gt;\n\t&lt;li &lt;?php comment_class(); ?&gt; id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;\n\t\t&lt;p&gt;&lt;?php _e( &#039;Pingback:&#039;, &#039;retrotale&#039; ); ?&gt; &lt;?php comment_author_link(); ?&gt; &lt;?php edit_comment_link( __( &#039;(Edit)&#039;, &#039;retrotale&#039; ), &#039;&lt;span class=&quot;edit-link&quot;&gt;&#039;, &#039;&lt;\/span&gt;&#039; ); ?&gt;&lt;\/p&gt;\n\t&lt;?php\n\t\t\tbreak;\n\t\tdefault :\n\t\tglobal $post;\n\t?&gt;\n\t&lt;li &lt;?php comment_class(); ?&gt; id=&quot;li-comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;\n\t\t&lt;div id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot; class=&quot;comment&quot;&gt;\n\t\t\t&lt;div class=&quot;comment-meta comment-author vcard&quot;&gt;\n\t\t\t\t&lt;?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( &#039;&lt;span&gt;&lt;b class=&quot;fn&quot;&gt;%1$s&lt;\/b&gt; %2$s&lt;\/span&gt;&#039;,\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t( $comment-&gt;user_id === $post-&gt;post_author ) ? &#039;&lt;span&gt;&#039; . __( &#039;(Post author)&#039;, &#039;retrotale&#039; ) . &#039;&lt;\/span&gt;&#039; : &#039;&#039;\n\t\t\t\t\t);\n\t\t\t\t\tprintf( &#039;&lt;time datetime=&quot;%2$s&quot;&gt;%3$s&lt;\/time&gt;&#039;,\n\t\t\t\t\t\tesc_url( get_comment_link( $comment-&gt;comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( &#039;c&#039; ),\n\t\t\t\t\t\t\/\/ translators: 1: date, 2: time\n\t\t\t\t\t\tsprintf( __( &#039;%1$s at %2$s&#039;, &#039;retrotale&#039; ), get_comment_date(&#039;&#039;), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?&gt;\n\t\t\t&lt;\/div&gt;&lt;!-- .comment-meta --&gt;\n\n\t\t\t&lt;?php if ( &#039;0&#039; == $comment-&gt;comment_approved ) : ?&gt;\n\t\t\t\t&lt;p class=&quot;comment-awaiting-moderation&quot;&gt;&lt;?php _e( &#039;Your comment is awaiting moderation.&#039;, &#039;retrotale&#039; ); ?&gt;&lt;\/p&gt;\n\t\t\t&lt;?php endif; ?&gt;\n\n\t\t\t&lt;div class=&quot;comment-content comment&quot;&gt;\n\t\t\t\t&lt;?php comment_text(); ?&gt;\n\t\t\t &lt;div class=&quot;reply&quot;&gt;\n\t\t\t   &lt;?php comment_reply_link( array_merge( $args, array( &#039;reply_text&#039; =&gt; __( &#039;Reply&#039;, &#039;retrotale&#039; ), &#039;after&#039; =&gt; &#039; &lt;span&gt;&amp;darr;&lt;\/span&gt;&#039;, &#039;depth&#039; =&gt; $depth, &#039;max_depth&#039; =&gt; $args[&#039;max_depth&#039;] ) ) ); ?&gt;\n\t\t\t&lt;\/div&gt;&lt;!-- .reply --&gt;\n\t\t\t   &lt;?php edit_comment_link( __( &#039;Edit&#039;, &#039;retrotale&#039; ), &#039;&lt;p class=&quot;edit-link&quot;&gt;&#039;, &#039;&lt;\/p&gt;&#039; ); ?&gt;\n\t\t\t&lt;\/div&gt;&lt;!-- .comment-content --&gt;\n\t\t&lt;\/div&gt;&lt;!-- #comment-## --&gt;\n\t&lt;?php\n\t\tbreak;\n\tendswitch;\n}\nendif;\n\n\/**\n * Function for adding custom classes to the menu objects.\n *\n*\/\nadd_filter( &#039;wp_nav_menu_objects&#039;, &#039;retrotale_filter_menu_class&#039;, 10, 2 );\nfunction retrotale_filter_menu_class( $objects, $args ) {\n\n    $ids        = array();\n    $parent_ids = array();\n    $top_ids    = array();\n    foreach ( $objects as $i =&gt; $object ) {\n\n        if ( 0 == $object-&gt;menu_item_parent ) {\n            $top_ids[$i] = $object;\n            continue;\n        }\n\n        if ( ! in_array( $object-&gt;menu_item_parent, $ids ) ) {\n            $objects[$i]-&gt;classes[] = &#039;first-menu-item&#039;;\n            $ids[]          = $object-&gt;menu_item_parent;\n        }\n\n        if ( in_array( &#039;first-menu-item&#039;, $object-&gt;classes ) )\n            continue;\n\n        $parent_ids[$i] = $object-&gt;menu_item_parent;\n    }\n\n    $sanitized_parent_ids = array_unique( array_reverse( $parent_ids, true ) );\n\n    foreach ( $sanitized_parent_ids as $i =&gt; $id )\n        $objects[$i]-&gt;classes[] = &#039;last-menu-item&#039;;\n\n    return $objects;\n}\n\n\/**\n * Function for rendering CSS3 features in IE.\n *\n*\/\nadd_filter( &#039;wp_head&#039; , &#039;retrotale_pie&#039; );\nfunction retrotale_pie() { ?&gt;\n&lt;!--[if IE]&gt;\n&lt;style type=&quot;text\/css&quot; media=&quot;screen&quot;&gt;\n#container-shadow, .menu-box-wrapper, .top-navigation-wrapper {\n        behavior: url(&quot;&lt;?php echo get_template_directory_uri() . &#039;\/css\/pie\/PIE.php&#039;; ?&gt;&quot;);\n        zoom: 1;\n}\n&lt;\/style&gt;\n&lt;![endif]--&gt;\n&lt;?php }\n\n\/**\n * Include the TGM_Plugin_Activation class.\n *\n*\/\nif ( current_user_can ( &#039;install_plugins&#039; ) ) {\nrequire_once get_template_directory() . &#039;\/class-tgm-plugin-activation.php&#039;;\nadd_action( &#039;retrotale_register&#039;, &#039;retrotale_my_theme_register_required_plugins&#039; );\n\nfunction retrotale_my_theme_register_required_plugins() {\n\n$plugins = array(\n\t\tarray(\n\t\t\t&#039;name&#039;     =&gt; &#039;Breadcrumb NavXT&#039;,\n\t\t\t&#039;slug&#039;     =&gt; &#039;breadcrumb-navxt&#039;,\n\t\t\t&#039;required&#039; =&gt; false,\n\t\t),\n    array(\n\t\t\t&#039;name&#039;     =&gt; &#039;The Events Calendar&#039;,\n\t\t\t&#039;slug&#039;     =&gt; &#039;the-events-calendar&#039;,\n\t\t\t&#039;required&#039; =&gt; false,\n\t\t),\n); \n\n$config = array(\n\t\t&#039;domain&#039;       =&gt; &#039;retrotale&#039;,\n    &#039;menu&#039;         =&gt; &#039;install-my-theme-plugins&#039;,\n\t\t&#039;strings&#039;    \t =&gt; array(\n\t\t&#039;page_title&#039;             =&gt; __( &#039;Install Recommended Plugins&#039;, &#039;retrotale&#039; ),\n\t\t&#039;menu_title&#039;             =&gt; __( &#039;Install Plugins&#039;, &#039;retrotale&#039; ),\n\t\t&#039;instructions_install&#039;   =&gt; __( &#039;The %1$s plugin is required for this theme. Click on the big blue button below to install and activate %1$s.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;instructions_activate&#039;  =&gt; __( &#039;The %1$s is installed but currently inactive. Please go to the &lt;a href=&quot;%2$s&quot;&gt;plugin administration page&lt;\/a&gt; page to activate it.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;button&#039;                 =&gt; __( &#039;Install %s Now&#039;, &#039;retrotale&#039; ),\n\t\t&#039;installing&#039;             =&gt; __( &#039;Installing Plugin: %s&#039;, &#039;retrotale&#039; ),\n\t\t&#039;oops&#039;                   =&gt; __( &#039;Something went wrong with the plugin API.&#039;, &#039;retrotale&#039; ), \/\/ *\/\n\t\t&#039;notice_can_install&#039;     =&gt; __( &#039;This theme requires the %1$s plugin. &lt;a href=&quot;%2$s&quot;&gt;&lt;strong&gt;Click here to begin the installation process&lt;\/strong&gt;&lt;\/a&gt;. You may be asked for FTP credentials based on your server setup.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;notice_cannot_install&#039;  =&gt; __( &#039;Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;notice_can_activate&#039;    =&gt; __( &#039;This theme requires the %1$s plugin. That plugin is currently inactive, so please go to the &lt;a href=&quot;%2$s&quot;&gt;plugin administration page&lt;\/a&gt; to activate it.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;notice_cannot_activate&#039; =&gt; __( &#039;Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.&#039;, &#039;retrotale&#039; ),\n\t\t&#039;return&#039;                 =&gt; __( &#039;Return to Recommended Plugins Installer&#039;, &#039;retrotale&#039; ),\n),\n);\nretrotale_tgmpa( $plugins, $config );\n}}\n}\n?&gt;<\/code><\/pre>\n<p>Ich bitte um schnelle Hilfe!<br \/>\nMarc-Sebastian<\/p>\n","protected":false},"template":"","class_list":["post-12480","topic","type-topic","status-publish","hentry","topic-tag-error","topic-tag-fatal","topic-tag-fatal-error","topic-tag-fehler","topic-tag-woocommerce"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12480\/revisions"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}