Title: Loading header/footer by shortcode throws warning
Last modified: December 5, 2024

---

# Loading header/footer by shortcode throws warning

 *  Resolved [locker17](https://wordpress.org/support/users/locker17/)
 * (@locker17)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/)
 * I want to load the header and footer in a dynamic page created by a plugin.
   I
   use this code for the header:
 * echo `do_shortcode('[hfe_template id="42"]');`
 * this throws the following error:
   Note: The map_meta_cap function was called incorrectly.
   The elementor-hf content type was not registered. It could therefore be unreliable
   to match the edit_post permission with a post of this type. Further information:
   Debugging in WordPress (English). (This message was added in version 4.4.0.) 
   in \wp-includes\functions.php on line 6085How to solve this?
 * PS: Duplicate NOT SOLVED YET:
 * [https://wordpress.org/support/topic/php-error-function-map_meta_cap/](https://wordpress.org/support/topic/php-error-function-map_meta_cap/)
    -  This topic was modified 1 year, 6 months ago by [locker17](https://wordpress.org/support/users/locker17/).
    -  This topic was modified 1 year, 6 months ago by [locker17](https://wordpress.org/support/users/locker17/).

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

 *  [Ankush Thakare](https://wordpress.org/support/users/iankusht/)
 * (@iankusht)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/#post-18185597)
 * Hi [@locker17](https://wordpress.org/support/users/locker17/), thank you for 
   reaching out and sharing this issue with us! I’ve passed this along to our developers
   for further investigation. Please allow us some time to review the problem thoroughly,
   and we’ll update you as soon as we have more information.
 * We appreciate your patience and understanding!
 * Kind regards,
   Ankush 😊
 *  [Ankush Thakare](https://wordpress.org/support/users/iankusht/)
 * (@iankusht)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/#post-18213734)
 * Hi @locker17, we weren’t able to replicate the issue on our end, so we couldn’t
   pinpoint the root cause just yet. Could you please share a screencast or provide
   detailed steps to help us recreate the issue? This will allow us to identify 
   the problem more accurately and work on resolving it as quickly as possible.
 * We truly appreciate your patience and look forward to assisting you further!
 *  [Ankush Thakare](https://wordpress.org/support/users/iankusht/)
 * (@iankusht)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/#post-18220507)
 * Hi @locker17,
 * It’s been a while since my last response, and we haven’t heard back from you.
   I hope you were able to resolve the issue or find a workaround.
 * I’m marking this thread as resolved due to inactivity. However, if you’re still
   experiencing the same problem, please feel free to share a screencast or detailed
   steps to help us replicate the issue. This will allow us to assist you more effectively.
 * You’re welcome to reply here if you need further help or start a new thread if
   there’s anything else related to this plugin that we can assist you with.
 * Kind regards,
   Ankush 😊
 *  [Ankush Thakare](https://wordpress.org/support/users/iankusht/)
 * (@iankusht)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/#post-18229524)
 * Hi [@locker17](https://wordpress.org/support/users/locker17/), thank you for 
   your patience!
 * We’ve resolved the issue in our development version. Could you please submit 
   a ticket using the [contact form here](https://ultimateelementor.com/contact/)?
   This will help us share the updated file with you. Please include a link to this
   support thread for reference.
 * We look forward to assisting you further!
 * Kind regards,
   Ankush

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

The topic ‘Loading header/footer by shortcode throws warning’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-elementor/assets/icon-256x256.gif?rev=3278750)
 * [Ultimate Addons for Elementor](https://wordpress.org/plugins/header-footer-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-elementor/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ankush Thakare](https://wordpress.org/support/users/iankusht/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/loading-header-footer-by-shortcode-throws-warning/#post-18229524)
 * Status: resolved