• Hello All,

    I am currently moving a static page into wordpress and am having a slight problem with a touch of code I have.

    I have a page (not a dynamic WP page, but template_portfolio.php) that I want to insert into a <div> that is on the home page. This worked fine when the page was just a static php page, but now that it has been moved to WP the code doesn’t pull the page anymore. I assume there is something different in how WP handles this.

    So, I have an empty div
    <div id="port_overlay"> </div>
    and I want to insert the following page
    template_portfolio.php

    I have been using

    $("#testing").click(function(){
    		$("#port_overlay").load("template_portfolio.php");
    	})

    and this is in a file called loader.js

    Any help would be great.
    Thanks,

    Harberg

  • The topic ‘loading a page with ajax’ is closed to new replies.