Title: solariane's Replies | WordPress.org

---

# solariane

  [  ](https://wordpress.org/support/users/solariane/)

 *   [Profile](https://wordpress.org/support/users/solariane/)
 *   [Topics Started](https://wordpress.org/support/users/solariane/topics/)
 *   [Replies Created](https://wordpress.org/support/users/solariane/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/solariane/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/solariane/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/solariane/engagements/)
 *   [Favorites](https://wordpress.org/support/users/solariane/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Three] Virtual Page + template](https://wordpress.org/support/topic/virtual-page-template/)
 *  Thread Starter [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/virtual-page-template/#post-17099771)
 * [@greenshady](https://wordpress.org/support/users/greenshady/) yes it’s way cleaner
   with the `header.php` and `footer.php` trick.
   Still have some incorrect stuff
   in the <head> ( title, canonical ) which might be set manually Do you know if
   it’s possible from PHP to something even “cleaner” in my eyes : Create a $p =
   WP_Post ( with my virtual URL and the correct Title + the info specifying which
   wp_template to apply ) and then do : `get_header();``apply_filters( 'the_content',
   $p->post_content )``get-footer();`
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Three] Virtual Page + template](https://wordpress.org/support/topic/virtual-page-template/)
 *  Thread Starter [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/virtual-page-template/#post-17098533)
 * [@foosantos](https://wordpress.org/support/users/foosantos/) thank you for your
   help.
   Two things that might help :
    - action `wp_body_open` is not called
    - the “basic / default” WP visual header and footer – I mean the one inside 
      <body> are called with my above “solution”
 * So for now, I do some “post-processing” : get rid of those html fragment through
   DOMXpath and rewrite some tags in the <head>
   A cleaner way to do it, might be
   to build a $post object and than apply the model on it…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Three] Virtual Page + template](https://wordpress.org/support/topic/virtual-page-template/)
 *  Thread Starter [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/virtual-page-template/#post-17089104)
 * BTW I forgot to mention that calling
   `get_header() `before and `get_Footer();`
   after the previous code doesn’t work as expected because it doesn’t strictly 
   apply / respect the theme configuration
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Virtual Page, model and dynamic content](https://wordpress.org/support/topic/virtual-page-model-and-dynamic-content/)
 *  Thread Starter [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/virtual-page-model-and-dynamic-content/#post-17086199)
 * to be more specific : 
   I succeed in loading the “model”, but it lacks the “top”
   of the file ( <html><head>…<body> )I do this in my virtual template page :
 *     ```wp-block-code
       $modelTemplate = get_post( 766 );
       $content = apply_filters( 'the_content', $modelTemplate->post_content );
       echo $content;
       ```
   
    -  This reply was modified 2 years, 7 months ago by [solariane](https://wordpress.org/support/users/solariane/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Virtual Page, model and dynamic content](https://wordpress.org/support/topic/virtual-page-model-and-dynamic-content/)
 *  Thread Starter [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/virtual-page-model-and-dynamic-content/#post-17084870)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) thanks for your answer.
   
   However my question was a little different : on a virtual page i.e seating on
   a some dynamic url, how to load the correct “model” as the template for this 
   virtual page ? ( theme `twenty-three` – WP 6.3 )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta for WooCommerce] Something went wrong when connecting to Facebook! Please try again.](https://wordpress.org/support/topic/something-went-wrong-when-connecting-to-facebook-please-try-again/)
 *  [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/something-went-wrong-when-connecting-to-facebook-please-try-again/page/2/#post-13688772)
 * [@stapolin](https://wordpress.org/support/users/stapolin/) thanks – **I also 
   had to set to optional option for letting the plugin manage my business to on/
   yes.**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] Sitemaps](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/)
 *  [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/#post-3117267)
 * actually the plugin doesn’t touch on robots.txt but use the ping mechanism to
   let google/bing know there’s a new sitemap in the town.
 * the root sitemap of your site is at : [http://your-domain/sitemap_index.xml](http://your-domain/sitemap_index.xml)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] Sitemaps](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/)
 *  [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/#post-3117252)
 * because the site map are dynamically generated on call – there is an rather smart
   url scheme so that every sitemap has its own url which is decoded by the plugin
   => every time the url is requested, the plugin is handling the processing of 
   it => decode it to know which type of map to generate => generate it => output
   it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] Sitemaps](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/)
 *  [solariane](https://wordpress.org/support/users/solariane/)
 * (@solariane)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-sitemaps/#post-3117195)
 * As far as I understand the code, there are NO associated files – all maps are
   dynamically generated
 * I’ve been looking at it because in my case, it’s a major drawback since it takes
   a lot of time ( actually more than the proxy timeout 🙂 ) to generate the code,
   hence actually it failed…

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