Title: Loading the page template with php
Last modified: September 27, 2024

---

# Loading the page template with php

 *  [locker17](https://wordpress.org/support/users/locker17/)
 * (@locker17)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/loading-the-page-template-with-php/)
 * I am having a page which is dynamically created from a php file. Because this
   page is not physically present on the page table in WordPress I cannot set a 
   template for this page.
   I might set the header and footer with get_header() and
   get_footer() for this page but how can I get the template background which I 
   normally have as a standard when creating a new page at the WP editor?Is there
   a code for the body element for example to load the standard Astra template?

Viewing 1 replies (of 1 total)

 *  [Aradhy Singh](https://wordpress.org/support/users/bsfaradhy/)
 * (@bsfaradhy)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/loading-the-page-template-with-php/#post-18055770)
 * Hi [@locker17](https://wordpress.org/support/users/locker17/),
 * I apologize if I didn’t fully grasp your concern, as it seems to involve customization,
   which falls outside of our support scope. However, I’ll leave this open for the
   community, and hopefully, someone will have ideas or solutions that might work
   for you.
 * Additionally, please note that Astra follows WordPress coding standards, so if
   what you’re attempting works with a default WordPress theme, it should ideally
   work with Astra as well.
 * Hope this helps.
 * Best regards,
    Aradhy

Viewing 1 replies (of 1 total)

The topic ‘Loading the page template with php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/astra/4.13.2/screenshot.jpg)
 * Astra
 * [Support Threads](https://wordpress.org/support/theme/astra/)
 * [Active Topics](https://wordpress.org/support/theme/astra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/astra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/astra/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aradhy Singh](https://wordpress.org/support/users/bsfaradhy/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/loading-the-page-template-with-php/#post-18055770)
 * Status: not resolved