Title: undefined function displayPostByCat()
Last modified: August 20, 2016

---

# undefined function displayPostByCat()

 *  Resolved [Ron_A_Lawson](https://wordpress.org/support/users/ron_a_lawson/)
 * (@ron_a_lawson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-displaypostbycat/)
 * Fatal error: Call to undefined function displayPostByCat() in …/wp-content/plugins/
   wp-sitemap-page/wp-sitemap-page.php on line 107
 * [http://wordpress.org/extend/plugins/wp-sitemap-page/](http://wordpress.org/extend/plugins/wp-sitemap-page/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tony Archambeau](https://wordpress.org/support/users/funnycat/)
 * (@funnycat)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-displaypostbycat/#post-3198804)
 * Hello, I’m the developer behind this plugin.
    Sorry about that. Just before to
   sent the first release, I renamed all functions and I forget to change this line.
   I juste fixed the bug on 1.0.2 version.
 * Please, feel free to test again this plugin. Don’t hesitate to give me some feedbacks
   about the plugin.
 * Thanks again to report this bug.
 *  Thread Starter [Ron_A_Lawson](https://wordpress.org/support/users/ron_a_lawson/)
 * (@ron_a_lawson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-displaypostbycat/#post-3198806)
 * No joy. I’ve updated to the 1.0.2 and it doesn’t return any error. However it
   also doesn’t display the categories or pages.
    [http://www.ralawson.com/blog/site-map/](http://www.ralawson.com/blog/site-map/)
 *  Plugin Author [Tony Archambeau](https://wordpress.org/support/users/funnycat/)
 * (@funnycat)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-displaypostbycat/#post-3198807)
 * Oh, I didn’t expected this result.
    Could you please replace temporary in your
   file wp-config.php the line following line: `define('WP_DEBUG', false);`
 * By this code:
    `define('WP_DEBUG', true);`
 * This will enable the debug mode. Once you did it, could you tell me the error
   you will get.
 * Just as an information, how many pages/posts do you have?
 * I built several sitemap with this plugin and it always worked fine. I will investigate
   the code to find the bug. Thanks in advance for your patience.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘undefined function displayPostByCat()’ is closed to new replies.

 * ![](https://ps.w.org/wp-sitemap-page/assets/icon-256x256.png?rev=981368)
 * [WP Sitemap Page](https://wordpress.org/plugins/wp-sitemap-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-sitemap-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sitemap-page/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sitemap-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sitemap-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sitemap-page/reviews/)

## Tags

 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tony Archambeau](https://wordpress.org/support/users/funnycat/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/undefined-function-displaypostbycat/#post-3198807)
 * Status: resolved