As you can see in my website: http://www.szbenz.com
SO it’s better now for our readers to understand the benz fans blog.
I change the theme to be a benz theme, and I’ll also provide the download version for your own blog.
Here is the address to download: BENZ WORDPRESS
THANK YOU!
Noitce:
IF you think the header picture is [...]
1, first step, find wp-config.php
ad the code below
define(‘WP_POST_REVISIONS’, false);//to stop the article revision
2,upload two plugins as follows
1,wp-pagenavi:for pages
2,super-switch:to make ID continuum
3, find the wp-includes/functions.php
add the code below
//count 1 day post count1day()<BR>function count1day()<BR>{<BR>global $wpdb;<BR>$strsql = “SELECT count( ID ) AS c FROM wp_posts WHERE post_date > SUBDATE(NOW(),INTERVAL 1 day)” ;<BR>$xxooxx = $wpdb->get_var($strsql);<BR>return $xxooxx;<BR>}<BR>//count 1 day post [...]
I’m so excited, finally I fix it.
I must make a record.
Below is the code to access the database.
<?php
$how_many=6; //how many posts to display
require(’../../blog/wp-config.php’); //the path to the wp-config file of the blog I want to use
$news=$wpdb->get_results(”SELECT ‘ID’,’post_title’,’post_content’ FROM $wpdb->posts
WHERE ‘post_type’=”post” AND ‘post_status’=”publish” ORDER BY post_date DESC LIMIT $how_many”);
foreach($news as $np){
printf (”<div class=’normalText’> %s [...]
