html - Including a body file (that is much like a platform MySQL / PHP / JS) into a wordpress template -
i’ve built seo platform works mysql database , outputs / inputs php table.
i’ve made template in wordpress has header , footer original theme, , left body empty can call application / platform.
<?php /* template name: keywords */ ?> <?php get_header(); ?> <?php include('/body_call/index.php'); ?> <?php get_footer(); ?>
i’ve tried place folder files (body_call) in several places , called index.php folder hoping fills center of template.
the index folder this:
<html> <div id="container"> <body id="body"> <?php include('body_call/body.php'); ?> </body> </div> </html>
i know problem calling part because platform works if it’s self…
and it's worpress specific code i'm missing.
can help?
thanks,
miguel
when include
file file including in file. means in first file folder , not second. if second file needs include file wich stored somewhere else has included navigating first file folder it's actual path. sounds little tricky. nvigate upper level if need should use ../
.
anyway avoid confusion suggest use absolute path
ever file called able charge file anywhere.
have @ include
documentation
an example be
include(/home/user/body_call/index.php');
Comments
Post a Comment