IPB

( Zaloguj | Zarejestruj )

 
Reply to this topicStart new topic
> Własna podstrona z kodem php
tosiek
post 02.5.2009 - 18:52
Post #1





Grupa: Bloger
Postów: 5

Nr: 6 004



Witam. Mam pytanie jak stworzyć własną podstronę w wordpressie ? z własnym kodem php ?

zrobiłem coś takiego:
tosiek
(jest na dole)

Ale wywala 404 ;/ A w tworzeniu stron jest tylko html nie ma miejsca na php ;/(w panelu admina)

kod:
KOD
<?php
if ($_SERVER["REQUEST_URI"] == "/sprawdzanie-poprawnosci-wysylania-xhtml.php")
{
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://tosiek.pl/sprawdzanie-poprawnosci-wysylania-xhtml/");
    exit;
}
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
//reszta...
?>


Ten post edytował tosiek 05.7.2009 - 18:07


--------------------
Go to the top of the page
 
+Quote Post
WPNinja
post 02.5.2009 - 20:01
Post #2


aktywność:
****

Grupa: +Bloger
Postów: 459

Nr: 3 567



http://wpninja.pl/php-we-wpisach-i-widgetach/


--------------------
WPNinja - WordPress to moje Kung-Fu
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



: 23 05 12 - 16:10