echo '<link rel="alternate" href="' . $hreflang['hreflang_url'] . '" hreflang="' . strtolower($hreflang['hreflang_language']) . '" />' . PHP_EOL; } } } else if( (function_exists('is_category') && is_category()) || ( function_exists('is_product_category') && is_product_category()) ) { $category = get_queried_object(); $language_hreflang = get_field('language_hreflang', 'category_' . $category->term_id); if (isset($language_hreflang) && is_array($language_hreflang)){ foreach ($language_hreflang as $hreflang) { echo '<link rel="alternate" href="' . $hreflang['hreflang_url'] . '" hreflang="' . strtolower($hreflang['hreflang_language']) . '" />' . PHP_EOL; } } // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } } elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) { // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`. $arg[0] = $arg[0][0]; } $wp_filter[ $hook_name ]->do_action( $arg ); array_pop( $wp_current_filter );}/** /** * Prints scripts or data in the head tag on the front end. * * @since 1.5.0 */ do_action( 'wp_head' );}/** * Fires the wp_footer action. * ?>"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> * * @param string $template The path of the template to include. */ $template = apply_filters( 'template_include', $template ); if ( $template ) { include $template; } elseif ( current_user_can( 'switch_themes' ) ) { $theme = wp_get_theme(); if ( $theme->errors() ) { wp_die( $theme->errors() ); } // Set up the WordPress query. wp(); // Load the theme template. require_once ABSPATH . WPINC . '/template-loader.php';}<?php/** * WordPress View Bootstrapper */define('WP_USE_THEMES', true);require __DIR__ . '/wp/wp-blog-header.php';|
Error
|
|---|
Error:
Call to undefined function App\get_field()
at /mnt/persist/www/vaginaleklachten.nl/web/app/themes/karo-pharma/app/setup.php:1045
at App\{closure}()
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/class-wp-hook.php:324)
at WP_Hook->apply_filters()
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/class-wp-hook.php:348)
at WP_Hook->do_action()
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/plugin.php:517)
at do_action()
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/general-template.php:3192)
at wp_head()
(/mnt/persist/www/vaginaleklachten.nl/web/app/themes/karo-pharma/index.php:21)
at include('/mnt/persist/www/vaginaleklachten.nl/web/app/themes/karo-pharma/index.php')
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/template-loader.php:106)
at require_once('/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-includes/template-loader.php')
(/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-blog-header.php:19)
at require('/mnt/persist/www/vaginaleklachten.nl/web/wp/wp-blog-header.php')
(/mnt/persist/www/vaginaleklachten.nl/web/index.php:6)
|