Oscar E |
Nov 17, 2011 09:17 PM |
[SOLVED] Script inserts show correctly but title said: "404 - Page not found << Blog
Hello everyone:
Today inserted the following code into an external index.php to be show as part of Atahualpa:
Code:
<?php
require('../wp-blog-header.php');
get_header();
?>
<?php
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata);
?>
CODE CODE CODE CODE CODE
<?php get_footer(); ?>
It shows correctly everything but the tittle say: "404 - Page not found << Blog Tittle", there is a way to call for a customized tittle? or just the blog title? or simply avoid that page to be labeled as a 404?
The index.php is located in a folder inside of public_html (public_html/folder/index.php
Note: i'm not expert, and i usually troubleshot my problems with my google-fu, but this time it failed me.
Thanks in advance.
SOLVED:
The following code remove the "404 Page not found"
Code:
<?php
require('../wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
?>
<?php
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata);
?>
CODE CODE CODE CODE CODE
<?php get_footer(); ?>
|