wagawaga
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Display random post at front pagesamboll, how?
Forum: Themes and Templates
In reply to: Display random post at front pagehow to put it in my template as above?
Forum: Themes and Templates
In reply to: display older post first in category pagethanks
Forum: Fixing WordPress
In reply to: Problem to display arabic characteri found the solution;
/*define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);*/or remove it. does that has any implication on my db?
Forum: Fixing WordPress
In reply to: Problem to display arabic characteryes samboll, i also did use notepad, but still the arabic character not showing. any further ideas?
Forum: Themes and Templates
In reply to: Widget Backgroundthanks for the reply.
let say i have one sidebar and widgetized. the content will be;
widget 1 | main column
widget 2
widget 3what i would like to do is, for each widget, they have different background color.
how to achieve that?
Forum: Installing WordPress
In reply to: WordPress 2.2 Upgrade ProblemMichael, there is no .htaccess file in my wordpress folder, do i need to create one?
When i create one, do i just put this code in it?
php_value memory_limit 16MThis is what i got recently, when i try to enter the admin area.
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /wp-admin/menu-header.php on line 70Thanks.
Forum: Installing WordPress
In reply to: WordPress 2.2 Upgrade ProblemThis what i got recently when i put run the upgrade script.
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /wp-admin/admin-functions.php on line 97
Any ideas what should i do?
Forum: Installing WordPress
In reply to: WordPress 2.2 Upgrade ProblemHi, yes i got just white screen. I re-install wordpress but still the same problem happened. Any suggestions?
Forum: Fixing WordPress
In reply to: How to make special template file for posts in a categoryThanks. Really helpful.
Forum: Fixing WordPress
In reply to: Page displaying post in child categoriesHi there,
I use this code to display several categories in one of my page. But i got some error, why?
Code:
<?php query_posts(‘showposts=10&cat=5,6,7,8,9,10,11,12’); ?><?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class=”<?php post_style(); ?>” id=”post-<?php the_ID(); ?>”><h2>” rel=”bookmark”><?php the_title(); ?></h2>
<div class=”postdate”><?php _e(‘Posted on’); ?> <?php the_time(‘F jS, Y’) ?> <?php _e(‘by’); ?> <?php the_author() ?></div>
<div class=”entry”><?php the_excerpt(‘Read more…’); ?>
….
Error;WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘6,7,8,9,10,11,12 GROUP BY wp_posts.ID ORDER BY (wp_sticky.sticky_status = 2 AND ‘ at line 1]
SELECT SQL_CALC_FOUND_ROWS wp_posts.*, wp_sticky.sticky_status FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_sticky ON wp_sticky.sticky_post_id = wp_posts.ID WHERE 1=1 AND wp_post2cat.category_id IN (5, 6, 7, 8, 9, 10, 11, 12) AND (post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’)) AND category_id = 5,6,7,8,9,10,11,12 GROUP BY wp_posts.ID ORDER BY (wp_sticky.sticky_status = 2 AND wp_sticky.sticky_status IS NOT NULL) DESC, DATE_FORMAT(wp_posts.post_date,’%Y-%m-%d’) DESC, (wp_sticky.sticky_status = 1 AND wp_sticky.sticky_status IS NULL) DESC, DATE_FORMAT(wp_posts.post_date,’%T’) DESC LIMIT 0, 10I don’t understand.
What i’m to achieve is that i’m trying to display posts from several categories, not all.
Forum: Fixing WordPress
In reply to: Multiple category recent postsi found the solution, using coffee to code plug ins. thanks
Forum: Fixing WordPress
In reply to: Multiple category recent postssidebar…
i found post like this one, but i’m not sure;
I use the following code to generate a list of the titles of the 10 most recent post in my sidebar and exclude 1 category (with id=18 in this example):-
<?php $temp_query = $wp_query; query_posts(‘showposts=10&cat=-18’); ?>
- ” rel=”bookmark” title=”Permanent Link to “<?php the_title(); ?>””><?php the_title(); ?>
<?php while (have_posts()) { the_post(); ?><?php } $wp_query = $temp_query; ?>
i found this error;
WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
SELECT SQL_CALC_FOUND_ROWS wp_posts.*, wp_sticky.sticky_status FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_sticky ON wp_sticky.sticky_post_id = wp_posts.ID WHERE 1=1 AND wp_posts.ID NOT IN (3) AND (post_type = ‘post’ AND (post_status = ‘publish’)) AND category_id NOT IN (1,2) GROUP BY wp_posts.ID ORDER BY (wp_sticky.sticky_status = 2 AND wp_sticky.sticky_status IS NOT NULL) DESC, DATE_FORMAT(wp_posts.post_date,’%Y-%m-%d’) DESC, (wp_sticky.sticky_status = 1 AND wp_sticky.sticky_status IS NULL) DESC, DATE_FORMAT(wp_posts.post_date,’%T’) DESC LIMIT 0, 10how to exclude a few categories from recent post in the sidebar?
Forum: Fixing WordPress
In reply to: Multiple category recent postsstill i could not find what am i looking for. can anybody help me to point which post does suit what i need?
yes i want to display recent posts but for certain categories only, not all.
Forum: Fixing WordPress
In reply to: Multiple category recent postsOK Thanks.