cannot “get_archives” from a php include file
-
I’ve just relaunched my site: deeplyshallow.com
In the previous version of my site, in a sidebar on the main index template I would display the ten most recent entries.
In the updated version I’ve moved that list of recent entries to a separate file. I’m then using a PHP include statement to display that file in a sidebar.
Here is the include file: https://www.deeplyshallow.com/includes/column2_entries.php
However, instead of seeing the list of recent entries, there’s an error message where the include file should display. It reads:
Fatal error: Call to undefined function: get_archives() in /home/jason/public_html/includes/column2_entries.html on line 10
I don’t know how to tell the include file to reference my WP database. Can anybody tell me how to set this file up so that it does what I’d like it to?
- The topic ‘cannot “get_archives” from a php include file’ is closed to new replies.