Hola necesito ayuda urgente resulta que estoy creando una plantilla en Wordpress desde cero y me sale el siguiente error no he podido solucionarlo alguna alma caricativa que me ayude a solucionar el error porfavor, en la parte donde agrego al archivo index.php la función wp_head(); cuando corro la plantilla me sale el siguiente error: Fatal error: Uncaught Error: Call to undefined function wp_head() in C:\xampp\htdocs\wordpress\wp-content\themes\fundacionaburra\index.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\wordpress\wp-content\themes\fundacionaburra\index.php on line 6 , este el codigo que tengo hasta el momento:
archivo
style.css
/*
Theme Name: fundacionaburra
Theme URI:
Author: Roberto Alejandro Agudelo Callejas
Author URI:
Description: Theme para sitio web de la Fundación Aburra
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Fundación, cultura, medellin, cultura indigena, antioquia, colombia, fundación aburra medellin
Text Domain: http://www.fundacionaburra.org
*/
body {
background-color: red;
}
archivo functions.php
<?php
function fundacionaburra_styles() {
wp_enqueue_style('style', get_template_directory_uri() . '/style.css', array(), '1.0');
}
add_action('wp_enqueue_style', 'fundacionaburra_styles');
archivo index.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> pagina de prueba </title>
<?php wp_head(); ?>
</head>
<body>
<h1> Hola Mundo </h1>
</body>
</html>