![]() |
Call php file witin a wordpress post?
Im not sure if this is possible, to me it should be but I don't know how.
I know there is a plugin that allows you to run php code within wordpress posts...but this is not what I want. I don't want a plugin, and I don't need to type php code in my posts. I have a php file like mycode.php on my server, and within certain wordpress posts, I just wanna call that file so it runs the php file...how do I do it? In the HTML view, can I just link in someway to that php file? Is what I am asking even possible? |
|
yes its possible, I would make a shortcode so you would do [mycode]
and it will do it only when you do that in the post. |
|
Either way, if you know there's a code to run php code within posts you could just do this in posts:
<?php include_once("/full/path/to/file.php");?> ^but this would only include it once on any page if there are multiple posts OR <?php include("/full/path/to/file.php");?> Good luck. |
Quote:
|
All times are GMT -7. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123