• Hi, I’m pretty new to WP, so maybe I’m just doing something wrong…
    My problem is, that I’m trying to create new theme, but from unknown reason, core functions don’t work… When I’m trying to open file (for example index.php) that includes some predefined functions (for example get_header() etc.), I’m getting fatal error (“Fatal error: Uncaught Error: Call to undefined function…”).

    I really don’t know, what could be the problem. I’ve tried everything, even reinstalling WP, but problem persists 🙁 It’s weird, because yesterday everything was ok…

    It seems, that WP cannot reach the predefined functions, but I don’t know, how it’s possible…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    I’m trying to create new theme, but from unknown reason, core functions don’t work…

    Our documentation has lots of resources on creating theme. See if they can point in the right direction:
    https://wordpress.org/search/theme+development

    Hi, @buri84

    When I’m trying to open file (for example index.php)

    If you access in your browser a theme file like this (I assume that is what you are trying now) yoursite.com/wp-content/themes/youtheme/header.php that will not work, because theme files are not stand-alone pages. They need to be loaded as theme files by WordPress – it loads everything it needs first (those core functions used in theme files and many other) and then displays correctly your theme. So first, go to Dashboard, activate that theme, and visit your site to see it live.

    As @t-p mentioned, have a look at wp documentation – that can be very helpful.

    Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Core functions don’t work’ is closed to new replies.