How to extract some part of WordPress full source code
Is it possible to extract some part of WordPress like the posting and display of content.
In the posting part all the processes used in posting and updating a content or the posts.
Ihe index process I mean an easy way to view content from the database without going to many process which the website those. For instance
www.example.com/wordpress/index.php
should have the power to go direct to the database and get information of the posted content and display it not going tru alot of like
//?php
/**
* 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( dirname( __FILE__ ) . '/wp-blog-header.php' );
it should be like
//?php
error_reporting(0);
require_once("_includes/connection.php");
require_once("_includes/functions.php");
{
$msg=$_GET['msg'];
}
?
?php find_selected_page(); ?
?php $query="Select * from index_post order by 1 DESC LIMIT 0,5 ";
$index_post=mysql_query($query);
$query="Select * from freead where cat_id='$sel_page[id]' ";
$freead=mysql_query($query);
?
the above gets information direct from my database instead of checking themes and error before looking content.
Topic wp-blog-header.php mysql database Wordpress
Category Web