[wp-hackers] Help on code flow
sai krishna
hodude81 at yahoo.com
Tue Dec 26 10:29:52 GMT 2006
Hi Roy,
Great Thanks for the help. I was able to go through the info what you have given.
But somehow I figured out that what I wanted was in /wp-includes/classes.php.
The filtering at the query level so that I can write my where clause to get the data that I stored.
To be precise it is here
//only select past-dated posts, except if a logged in user is viewing a single: then, if they
//can edit the post, we let them through
if ($pagenow != 'post.php' && $pagenow != 'edit.php' && !($this->is_single && $user_ID)) {
$where .= " AND post_date_gmt <= '$now'";
$distinct = 'DISTINCT';
}.
Here I add my where clause to get all the blogs that I need.
Thank You
Sai Krishnna
Roy Schestowitz <r at schestowitz.com> wrote:
Hi,
Your question is very broad, but perhaps I can help. It
sounds as though your main problem involves the insertion,
use, and display of some data which you have stored in XML
form. You accommodate the database, but you can't quite
manage to 'pull' the information out of it (please correct
me if there's a misconception here). I suggest you start
from the core function which displays content...
roy at BAINE:~/public_html/wordpress> cat index.php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
^^^^^^^^^^^^^^^^^^
Following through to ./wp-blog-header.php
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
^^^^^^^^^^^^^^
if ( strstr( $_SERVER['PHP_SELF'], 'wp-admin') ) $path = '';
else $path = 'wp-admin/';
Just follow the trail of PHP files and use the documentation
in the WordPress Codex <
http://codex.wordpress.org/Main_Page >. With the API's, you
will not need to intimately know the code. It will help you
understand how each function works, what purpose it serves
and how to override it.
Best wishes,
Roy
--
Roy S. Schestowitz
http://Schestowitz.com | GNU/Linux | PGP-Key: 0x74572E8E
http://othellomaster.com >> GPL-licensed 3-D Othello
http://iuron.com >> proposing an Open Source, non-profit search engine
Open Source journalism contributer @ http://newassignment.net
Joint Editor @ http://boycottnovell.com
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the wp-hackers
mailing list