Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
Thread Tools Display Modes
Share |
  #1  
Old 10-10-2010, 11:57 PM
globalcashsite globalcashsite is offline
Banned
 
Join Date: 07-11-09
Location: www.globalcashsite.com
Posts: 139
iTrader: 1 / 100%
How to insert php file in wordpress post or page

Hi guys

I just want to insert a php file http://www.globalcashsite.com/manager/blogtest.php in my wordpress blog but I am fail. Please help me how I can do this.

GCS
 

Advertisement

Advertisement

  #2  
Old 10-11-2010, 01:11 AM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,562
iTrader: 5 / 100%
Where on the page/post do you want to insert this?
 
  #3  
Old 10-11-2010, 01:29 AM
globalcashsite globalcashsite is offline
Banned
 
Join Date: 07-11-09
Location: www.globalcashsite.com
Posts: 139
iTrader: 1 / 100%
Quote:
Originally Posted by HTMLBasicTutor View Post
Where on the page/post do you want to insert this?
I have created a separate page so that I can set that page as home page. I want to insert this code in that page so I can show this data at home page of my blog. I am able to inset it in that page but I don't know why data is not shown correctly it is mismanaged at blog home page.

For test I removed all php code from this test php file and you can see the difference here

http://www.globalcashsite.com/blog/
http://www.globalcashsite.com/manager/blogtest.php

Same file is loading independently correct but at blog home page in difference way. There is some kind of table problem. I don't know why blog is not showing tables, data exactly in same way as it is showing independently.

GCS
 
  #4  
Old 10-11-2010, 10:27 AM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Administrator
 
Join Date: 10-29-07
Location: Canada
Posts: 26,562
iTrader: 5 / 100%
Why don't you use a div?

Include file:
HTML Code:
<div id="ad"> <p>GlobalCashSite Excellent sites</p> </div>
CSS:
Code:
#ad { width: 50%; margin-left: auto; margin-right: auto; background-color: #FF0000; color: #ffffff }
 
  #5  
Old 10-12-2010, 02:58 AM
globalcashsite globalcashsite is offline
Banned
 
Join Date: 07-11-09
Location: www.globalcashsite.com
Posts: 139
iTrader: 1 / 100%
This is what in blogtest.php

Quote:
<TABLE cellSpacing=2 cellPadding=0 border=0 width=50 height=50>
<TR height="20">
<TD bgcolor="red">
<center><strong><font face="arial" size=4 color="white">GlobalCashSite Excellent sites</font></strong></center>
</TD>
</TR>
</TABLE>
Now please guide me what to do. I removed all php to check it, once this is fixed then I will add php.

GCS
 
  #6  
Old 11-08-2010, 07:25 PM
jump's Avatar
jump jump is offline
Contributing Member
 
Join Date: 05-19-07
Location: Australia
Posts: 89
iTrader: 0 / 0%
These links are showing a 404 error page.

As was mentioned previously by HTMLBasicTutor, if you remove the table and add a div it will probably fix the problem.
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WordPress, PHP, built in function to insert a post record into the DB obender68 Coding Forum 0 10-01-2010 11:44 AM
SEO: wordpress page vs wordpress post madcaptains SEO Forum 14 03-08-2010 11:30 PM
WordPress - Put ad between first and second post on Main Page? rookiethomas Coding Forum 1 10-04-2009 08:58 AM
insert a .wav into the page ball420 Web Design Lobby 3 03-10-2007 06:38 PM
How can I insert a menu in text form into an external .css file Jason Web Design Lobby 1 11-19-2004 08:38 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:36 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC