KateMacwil Posted April 23, 2018 Share Posted April 23, 2018 Hi I have created a php file and would like to use the <iframe> tag to display the contents on a web page. I tried that as follows: <iframe src="/home/apldvhwt75w1/public_html/wp-content/plugins/my-schools/schools-users-view.php" width="800" height="500" frameborder="0"></iframe> and all I got was a blank page. Link to comment Share on other sites More sharing options...
westman Posted April 23, 2018 Share Posted April 23, 2018 You could try <div> <?php include_once "/file.php"; ?> </div> Link to comment Share on other sites More sharing options...
justsomeguy Posted April 23, 2018 Share Posted April 23, 2018 Your frame src is a local file path. It needs to be the HTTP server path. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 23, 2018 Share Posted April 23, 2018 Your frame src is a local file path. It needs to be the HTTP server path. Link to comment Share on other sites More sharing options...
dsonesuk Posted April 23, 2018 Share Posted April 23, 2018 (edited) You create pages/posts in wordpress editor by selecting post/page template, the title is usually used to create the url to this page/post, but you have the option to edit it. You could create your own template without header/footer if you wish, to only show the main content area. The url from the editor for that specific page/post is what you should be using. Edited April 23, 2018 by dsonesuk Link to comment Share on other sites More sharing options...
KateMacwil Posted April 24, 2018 Author Share Posted April 24, 2018 Thank u westman Works perfectly! Link to comment Share on other sites More sharing options...
westman Posted April 26, 2018 Share Posted April 26, 2018 oo wow I actually helped some one. That feels good. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now