Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-04-2010, 08:44 PM   #1
ManOfBusiness
Registered User
 
Join Date: Apr 2007
Posts: 58
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?
ManOfBusiness is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2010, 08:51 PM   #2
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
See if this is what you need

http://www.hongkiat.com/blog/execute...idget-sidebar/
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2010, 09:04 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2010, 09:04 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
http://www.amberpanther.com/knowledg...-post-content/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2010, 09:18 PM   #5
Jakez
Confirmed User
 
Jakez's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
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.
__________________
[email protected] - jakezdumb - 573689400

Killuminati
Jakez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2010, 09:20 PM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Jakez View 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.
you need a plugin to run php in posts.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.