Link to home
Start Free TrialLog in
Avatar of don0don
don0don

asked on

Improved Include Page Plugin problem

Let me say, right up front, that I am a total newbie to WordPress and that I am aware that my problem is almost certainly a result of my own ignorance.

I have installed and activated the Improved Include Page Plugin. WordPress is installed at http://andoverexchange.com/WordPress. I am trying to include the content of a WordPress page on the home page of the web site (http://www.andoverexchange.com/index.php). I have added the require statement at the top of the page to invoke wp-blog-header.php. However, no matter what syntax I use, I cannot get the content of the WordPress page to appear. The argument `<?php if(function_exists('iinclude_page')) iinclude_page(5); ?>`
just yields none of the content, but leaves the rest of the page intact. Any of the other methods suggested on the plugin installation page gets me a totally blank page.

I have attached the code for the page in question.


So that you can see where I am trying to include the content from the WordPress page, I have published an alternate version of the home page that includes the attempt to invoke the page include.

http://www.andoverexchange.com/include_test.php


So, O wise and merciful WordPress wizards, what am I doing wrong?
<?php
session_cache_limiter('none');
 session_save_path("/home/users/web/b2589/ipw.andovere/phpsessions");
session_start();
require('http://andoverexchange.com/WordPress/wp-blog-header.php');
?>
<html>
<head>
<title>AndoverExchange.com - Home of Beads, Clasps, Crystal Beads, Findings and more!  Beads, Sterling Silver Beads, Gold-filled Beads, Bali Beads, Bead Findings</title>
<meta name="description" content="Shop AndoverExchange.com for jewelry making supplies, including beautiful sterling silver beads, gold-filled beads, bali beads, glass beads, letter beads, Swarovski Crystal beads, a large selection of jewelry findings and watch heads and much, much more!">
<meta name="keywords" content="Beads, bead, beading, beading supplies, jewelry making supplies, jewelry making, Swarovski crystal, Czech glass, Austrian crystal, fire polished beads, fire polish beads, sterling silver, gold filled, gold-filled, bali beads, charms, pendants, necklaces, bracelets, clasps, chains, letter beads, semiprecious stones, beadalon, jewelry, beadwork, bead books, hobby, crafts, cloisonn?eads, earrings, pearls, etched beads, diamond cut beads, watch heads, watches, chain, alphabet beads, bali sterling silver beads, bead jewelry, beading tools, beading wire, charm bracelets, jewelry components, craft wire, jewelry findings, findings, glass beads, jewellery beads, loose beads, pearl beads, semi-precious stones, sterling silver beads, gold-filled beads, Swarovski beads, Swarovski crystal beads">
<meta name="robots" content="INDEX, FOLLOW">
<meta name="revisit-after" content="7 days">
<meta name="document-rating" content="Safe for Kids">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../endowed.css" type="text/css">
<SCRIPT language="JavaScript">
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
</SCRIPT>
<style type="text/css">
<!--
.style5 {color: #54758D; font-weight: bold; }
.style7 {color: #009595}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><TABLE title="Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle><IMG height=140 src="../images/logoblue.gif" width=720></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle><IMG height=30 alt="AndoverExchange.com home of Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" src="../images/buttons7a1.gif" width=717 useMap=#Map1 border=0></TD></TR></TBODY></TABLE>
<TABLE title="AndoverExchange.com home of Beads, Sterling Silver Beads, Gold-filled Beads, Crystal Beads and Bead Findings" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=10><IMG height=1 alt="AndoverExchange.com home of Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" src="../images/clear_dot.gif" width=10></TD>
<TD width="100%" bgColor=#5d829d>
      <div align="center"><a class="top" href="../categories.php">Products</a>
        <img src="../images/bullet7a.gif" width="15" height="15" border="0"> <a class="top" href="../search.php">Search</a>
        <img src="../images/bullet7a.gif" width="15" height="15" border="0"> <a class="top" href="../aboutus.php">About Us</a> <img src="../images/bullet7a.gif" width="15" height="15" border="0">
        <a class="top" href="../sitemap.php">Site Map</a>
       <img src="../images/bullet7a.gif" width="15" height="15" border="0">
        <a class="top" href="../faq.php">FAQ</a>
<a class="top" href="../cart.php"> <img src="../images/bullet7a.gif" width="15" height="15" border="0">
        Checkout</a></div></TD>
<TD width=10><IMG height=1 src="../images/clear_dot.gif" width=10></TD></TR>
<TR>
<TD colSpan=3><IMG height=4 src="../images/clear_dot.gif" width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=bottom width=10 rowSpan=3><IMG height=8 src="../images/clear_dot.gif" width=10></TD>
<TD vAlign=top align=middle width=146>
<TABLE cellSpacing=0 cellPadding=0 width=146 border=0>
<TBODY>
<TR>
<TD colSpan=5><IMG height=11 src="images/box_left7a_r1_c1.gif" width=146></TD></TR>
<TR>
<TD width=2 bgColor=#5d829d><IMG height=1 src="images/clear_dot.gif" width=2></TD>
<TD width=5 bgColor=#dae7ef><IMG height=8 src="images/clear_dot.gif" width=5></TD>
<TD vAlign=top width=132 bgColor=#dae7ef>
<H1 align=center><BR />Welcome</H1>
<H1 align=center><IMG height=1 src="../images/hline_columnA.gif" width=115></H1>
<P class=small align=center><STRONG>Enjoy Shopping!</STRONG></P>
<P class=small align=center><STRONG><EM>We offer:<BR /></EM></STRONG><BR />Fast Shipping<BR /><BR />Large Selection<BR /><BR />Choose Your Own Quantity<BR /><BR />No Minimum Purchase Required<BR /><IMG height=1 src="images/clear_dot.gif" width=132></P></TD>
<TD width=5 bgColor=#dae7ef><IMG height=1 src="images/clear_dot.gif" width=5></TD>
<TD width=2 bgColor=#5d829d><IMG height=1 src="images/clear_dot.gif" width=2></TD></TR>
<TR>
<TD colSpan=5><IMG height=11 src="images/box_left7a_r3_c1.gif" width=146></TD></TR></TBODY></TABLE>
<P><BR />
<CENTER>
<FORM name=form><SELECT onchange=javascript:formHandler() size=1 name=site> <OPTION value=# selected>All Products...<OPTION value=../products.php?cat=90>Beads<OPTION value=../products.php?cat=91>Spacers<OPTION value=../products.php?cat=92>Bead Caps<OPTION value=../products.php?cat=93>Clasps<OPTION value=../products.php?cat=94>Chain/Wire<OPTION value=../products.php?cat=95>Earrings<OPTION value=../products.php?cat=96>Findings<OPTION value=../products.php?cat=97>Crystal/Glass<OPTION value=../products.php?cat=98>Beads/Stones/Pearls<OPTION value=../products.php?cat=99>Miscellaneous<OPTION value=../products.php?cat=100>Watch Heads<OPTION value=../products.php?cat=101>Clearance</OPTION></SELECT> </FORM></CENTER>
<P align=center><BR /><IMG height=1 src="images/hline_columnA.gif" width=115></P>
<P align=center><SPAN style="FONT-WEIGHT: bold; COLOR: #5d829d">
<H1>Sign up now for our Newsletter!</H1></SPAN>
<P></P>
<P class=small align=center><SPAN style="FONT-WEIGHT: bold; COLOR: #ff0000"><span class="style7">Sign up now and Receive a 10% E-mail coupon good toward your next purchase!</span><BR /></SPAN>Receive Information on:<BR />Sale Promotions<BR />Special Coupons<BR />New Products</P>
<P>Sign up <A href="../emailsignup.php">HERE</A></P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115></P>
<SCRIPT language=JavaScript>
var newwin;
function emailfriend(){
newwin=window.open("../emailfriend.php","emailfriend","menubar=no, scrollbars=yes, width=500, height=500, directories=no,location=no,resizable=yes,status=no,toolbar=no");
}
</SCRIPT>

<P align=center><A href="javascript:emailfriend();"><IMG src="images/email_frienda.gif" border=0></A> <BR /><IMG height=1 src="images/hline_columnA.gif" width=115> </P>
<P class=small align=center><SPAN style="FONT-WEIGHT: bold; COLOR: #5d829d">AndoverExchange.com<BR /></SPAN>
PO Box 475<BR />
Center Harbor, NH 03226<BR />USA</P>
<P class=small align=center>(603) 677-2091</P>
<P class=small align=center><IMG height=1 src="images/hline_columnA.gif" width=115></P>
<P align=center><A href="mailto:ae@AndoverExchange.com"><img height=30 src="../images/email_button7a.gif" width=104 border=0></A></P>
<P></P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115></P><IMG height=1 src="../images/clear_dot.gif" width=15><IMG height=3 src="../images/clear_dot.gif" width=116><IMG height=1 src="../images/clear_dot.gif" width=15></TD>
<TD vAlign=bottom width=15 rowSpan=3><IMG height=1 src="../images/clear_dot.gif" width=15></TD>
<TD vAlign=top width="100%" rowSpan=2>
<DIV align=right>
<P><SPAN style="FONT-SIZE: 8pt">
<SCRIPT language=JavaScript1.2>
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<right>" + lmonth + " ");
document.write(date + ", " + year + "</right>");
</SCRIPT>
</SPAN></P></DIV>

<?php
if(function_exists('iinclude_page')) iinclude_page(5);
?>

<H2 align=center><IMG height=7 src="images/hline.gif" width=300></H2>
<H2 align=center>
  <TABLE width="100%" border=0>
    <TBODY>
      <TR>
        <TD align=middle><a href="../sterling.php"><IMG src="../prodimages/da/SS_4004.jpg" border=0><BR />
          </a>
          <H3><a href="../sterling.php" class="style5">Sterling Silver</a></H3></TD>
    <TD align=middle><a href="../bali.php"><IMG src="../prodimages/eb/SS_3207.jpg" border=0><BR />
      </a>
      <H3><a href="../bali.php" class="style5">Bali</a></H3></TD></TR>
      <TR></TR>
      <TR>
        <TD align=middle><a href="../goldfilled.php"><IMG src="../prodimages/ac/GF_3001_6.jpg" border=0><BR />
          </a>
          <H3><a href="../goldfilled.php" class="style5">Gold-filled</a></H3></TD>
    <TD align=middle><a href="../crystal.php"><IMG src="../prodimages/ks/5301-6rosaline.jpg" border=0><BR />
      </a>
      <H3><a href="../crystal.php" class="style5">Crystal Beads</a></H3></TD></TR>
      <TR></TR>
      <TR>
        <TD align=middle><a href="../andmore.php"><IMG src="../prodimages/or/rhinestonesa.jpg" border=0><BR />
          </a>
          <H3><a href="../andmore.php" class="style5">Miscellaneous (& More)</a></H3></TD>
    <TD align=middle><a href="../watches.php"><IMG src="../prodimages/wc/WF225.jpg" border=0><BR />
      </a>
      <H3><a href="../watches.php" class="style5">Watch Heads</a></H3></TD></TR></TBODY></TABLE>
</H2>
<H2 align=left>&nbsp;</H2>
<H2>&nbsp;</H2>
<H2 align=center><IMG height=7 src="images/hline.gif" width=300></H2><H2>&nbsp;</H2></TD>
<TD vAlign=bottom width=15 rowSpan=3><IMG height=1 src="../images/clear_dot.gif" width=15></TD>
<TD vAlign=bottom width=5 bgColor=#f1f7fa rowSpan=3><IMG height=8 src="../images/clear_dot.gif" width=5></TD>
<TD vAlign=top width=130 bgColor=#f1f7fa rowSpan=3>
<P><BR /></P>
<H2 align=center>Coupons!</H2>
<P class=small align=center>10% discount on all orders over $300.00 (coupon code=wholesale)</P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115>
<H2 align=center>CLEARANCE SALE</H2>
<P class=small align=center>Discountinued Sterling Silver, Gold-filled, Silver-plated and Gold-plated Beads and Findings on sale.</P>
<P class=small align=center><A href="../products.php?cat=101">Click here</A></P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115> 

<!--

<H2 align=center>FAX Order Form</H2>
<P class=small align=center>For the convenience of those shopppers who prefer not to order online, please print out our fax order form</P>
<P class=small align=center>Fax order form <A href="../fax.php">here</A></P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115> </P>

-->
<P></P>
<H2 align=center>Please note:</H2>
<P class=small align=center>Items in photos are not shown in their actual size</P>
<P class=small align=center>Although a very close representation, color in photos may not reflect <I>exact</I> color of beads</P>
<P align=center><IMG height=1 src="images/hline_columnA.gif" width=115> </P>
<P class=small align=center><A href="../aboutus.php"><IMG src="../images/abouta.gif" border=0></A><BR />How to Reach Us<BR />Pricing Policy<BR />Safe Shopping Policy<BR />Privacy Policy<BR />Return Poicy</P>
<P align=center><IMG height=1 src="images/clear_dot.gif" width=130></P></TD>
<TD vAlign=bottom width=5 bgColor=#f1f7fa rowSpan=3><IMG height=8 src="../images/clear_dot.gif" width=5></TD>
<TD vAlign=bottom width=10 rowSpan=3><IMG height=1 src="../images/clear_dot.gif" width=10></TD></TR>
<TR>
<TD></TD></TR>
<TR>
<TD></TD>
    <td valign="bottom">
      <div align="center"><a href="../categories.php">Products</a> | <a href="../search.php">Search</a> | <a href="../aboutus.php">About Us</a> | <a href="../sitemap.php">Site Map</a> | <a href="../faq.php">FAQ</a> <!-- | <a href="../fax.php">FAX</a> --> | <a href="../cart.php">Checkout</a> </div>    </td>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD colSpan=3><IMG height=4 src="../images/clear_dot.gif" width=1></TD></TR>
<TR>
<TD width=10><IMG height=1 src="../images/clear_dot.gif" width=10></TD>
<TD width="100%" bgColor=#5d829d>&nbsp;</TD>
<TD width=10><IMG height=1 src="../images/clear_dot.gif" width=10></TD></TR>
<TR>
<TD colSpan=3><IMG height=10 src="../images/clear_dot.gif" width=1></TD></TR></TBODY></TABLE><MAP name=Map1><AREA title=Home shape=RECT alt="Home - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=3,4,101,25 href="../index.php"><AREA title=Sterling shape=RECT alt="Sterling Silver Beads - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=106,4,202,25 href="../sterling.php"><AREA title=Bali shape=RECT alt="Bali Beads - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=207,4,305,25 href="../bali.php"><AREA title=Gold-filled shape=RECT alt="Gold-filled Beads - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=310,4,407,25 href="../goldfilled.php"><AREA title=Crystal shape=RECT alt="Crystal Beads - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=411,4,509,25 href="../crystal.php"><AREA title="& MOre" shape=RECT alt="And More - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=513,4,611,25 href="../andmore.php"><AREA title="Watch Heads" shape=RECT alt="Watch Heads - AndoverExchange.com: Beads, Sterling Silver Beads, Bali Beads, Gold-filled Beads, Crystal Beads and Bead Findings" coords=614,4,715,25 href="../watches.php"></MAP>
</body>
</html>

Open in new window

Avatar of don0don
don0don

ASKER

Oh! Should have said:

WordPress version is 2.8.4

Thanks!
Did you test using the shortcode in the post or page itself to be sure the plugin isn't completely failing?

What I mean is to edit your page in the wp-admin and add: [include-page id="5"] somewhere then update the page.

If that still doesn't work, it's more likely to be a plugin conflict, a theme problem, or an issue with the plugin itself.

Avatar of don0don

ASKER

I'm a bit confused ... maybe I need to clarify:

I integrated WordPress into a pre-existing web site. I am trying to pull the content of a WordPress page into a specific area of the Home Page for the main web site, namely www.andoverexchange.com/index.php -- not the main blog page, which is www.andoverexchange.com/WordPress/index.php.

I would not be editing the Home Page for the web site through the wp-admin dashboard.

All I want to so is to make a specific area of the Home Page -- namely, the text in the very center of the page, above the two columns of linked images -- editable through WordPress. From what I have read, I think this is possible, but maybe I'm wrong or maybe I'm just going about it the wrong way.

Thanks for your time and help.

ASKER CERTIFIED SOLUTION
Avatar of don0don
don0don

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial