Some Wordpress Plugin Help:

by 7 replies
9
Im looking for a function that will stop the entire WP theme and content form loading so that I can load my own full HTML in its place.'

I had a look at the WP codex but Im not having any luck with my searching. Im sure there must be a way to do this.

To reiterate basically there is a WP page (dont worry about the hook or anything that ids the page) .. I want to stop all the content and theme from loading, header, content, footer, everything and then totally replace it with my own HTML

Any assistance would be great.
#programming #plugin #wordpress
  • Hi,

    If the page ID is, say, 14, you can create a template named page-14.php that contains anything you want, place it in the theme folder, and then WP will automatically select that template to display for that page.

    It can be done with a plugin as well, but not as easily or as quickly.

    Jeff
  • You can also load wordpress on your page by including wp-load.php I think it is.

    This gives you access to wordpress functions and such.
  • Do not include wp-load.php 99% of the time. If you do, do it correctly.

    This would be wrong: include "../../../wp-load.php"; yet strangely enough LOT's of people do this, go figure...

    A long standing great article by "Otto" will help clear this up.
    • [ 1 ] Thanks
    • [1] reply
    • Ha David its like you where reading my mind dude. Thanks for the link.
  • Trying to stop WP from loading is a really hard way just to load your own html in it's place.

    Either just have the link (whatever it may be) link to the html page
    or
    Create a custom page template that matches what your doing with the html page design.

    If you want to know the WordPress loading order these 2 codex links will get you going
    ....and a article/graphic by Rarst

    Codex - Query Overview
    Codex - Plugin API/Action Reference
    • [ 1 ] Thanks
  • Follow the instructions embedded on the lines within the code below after the "//"s

    Code:
    <?php
    /*
    Template Name: Nothing Page
    
    ^^ this is important you can name the template anything you want. 
    "Template Name:" must be exactly as above 
    
    You need to "Add New Page" from the wordpress dashboard. 
    
    You just need to fill in the 'Page Title' and you need to go into "Page Attributes" and select the template you named above. The Page name is important, and it will be in the URL if your permalinks include /%postname%/
    I suggest you place any images in a directory off the wordpress root called "images and make sure all the image links are correct. 
    */
    ?>
    
    // insert all of your html page between here 
    
    
    // and here you can include any html markup or php code you like
    
    copy everything between the <?php and ?> including the <?php and ?>to the file and save it in your wp-content/themes/youractivetheme subdirectory as "pick-a-unique-name.php"
    Then go to the Add New Page in your dashboard and add a new page called "WhateverYouWant" "MySqueeze" or "NoWordPressHere"

    don't add any content select template to use and pick "Nothing Page" (or whatever you put for Template Name

    Save the page
  • Give me a call 1-800-219-1314 EXT 0 I'll give you a hand. But we may need to go the manual route...

    WILL-

Next Topics on Trending Feed

  • 9

    Im looking for a function that will stop the entire WP theme and content form loading so that I can load my own full HTML in its place.' I had a look at the WP codex but Im not having any luck with my searching. Im sure there must be a way to do this.