WordPress.org

Ready to get started?Download WordPress

Forums

loading a page with ajax (1 post)

  1. harberg
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic