ch4sethe5un
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: tag cloud made from specific categoryHere is updated code for when someone along the way comes to a similar question. This example uses a better core wordpress function to simplify the process. Just change the category name. If there is a simpler way, feel free to chime in.
<?php query_posts('category_name=html'); if (have_posts()) : while (have_posts()) : the_post(); if( get_the_tag_list() ){ $posttags = get_the_tag_list('<ul><li>','</li><li>','</li></ul>'); } endwhile; endif; echo $posttags; wp_reset_query(); ?>Forum: Fixing WordPress
In reply to: tag cloud made from specific categoryI found this, is this proper?
http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog
<?php query_posts('category_name=html'); if (have_posts()) : while (have_posts()) : the_post(); $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $all_tags_arr[] = $tag -> name; } } endwhile; endif; $tags_arr = array_unique($all_tags_arr); ?> <ul> <?php foreach($tags_arr as $tag){ echo '<li>'.$tag.'</li>'; } ?> </ul> <?php wp_reset_query(); ?>Forum: Fixing WordPress
In reply to: How to display a post that is in two categories?thanks, that is easier than what i was thinking of. I guess i looked over that one part of the page(many hours ago..).
Forum: Fixing WordPress
In reply to: How to display a post that is in two categories?oh so i can set it up so that like so:
if(is_category('rainbow')) { if(is_category('blue')) { query_posts('cat=blue')//this test for that specific page } }else if(...blah..){ query_posts(...blah...)//this is for other pages not like the first } //Loop hereim guessing that looks about right. unless you were talking about something else.
Forum: Fixing WordPress
In reply to: How to display a post that is in two categories?but i have to use query posts, which you pass parameters to
how do you turn that into an if() statement
if(query_posts(cat=rainbow == rainbow))?
Forum: Fixing WordPress
In reply to: wp_list_comments() wont display comments<?php comments_template( ”, true ); ?>
this displayed the comments, but doesn’t let me control the gravatar image from the backend settings. So i feel that something else is still overriding something.
Forum: Fixing WordPress
In reply to: URLs stack incorrectly on each otherThe problem was that i wasn’t using absolute paths for example.
href="/pollsarchive/"Forum: Fixing WordPress
In reply to: URLs stack incorrectly on each otherOk so i tried something and i turned the permalink structure back to the original “default” style and i changed the theme back to the twentyten theme. After that i changed the permalink style back to ‘/%postname%/’. It works as its supposed to in the twentyten theme, but when i switch to the starkers ‘naked’ theme. it is wrong.
What in a different theme can change the permalink structure?
Forum: Fixing WordPress
In reply to: URLs stack incorrectly on each otherdoes it have to do with my htaccess?
# BEGIN WordPress <IfModule mod_rewrite.c> ErrorDocument 404 /index.php?error=404 RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressthats in there along with some other things above it.
Forum: Themes and Templates
In reply to: apply different style to last 4 poststhank you! i tried the post_class() and it also puts a lot of clutter in the class that i dont want, so i just echoed out $style. Thanks again.
Forum: Fixing WordPress
In reply to: excluding subcategoriesThanks for the help, unfortunately that answers you people gave me was what i mentioned originally. It does not exclude the children of the category that i choose. It only excludes the category.
this is the only true way to exclude a category and its children.
if ( is_home() ) { $child_cats = (array) get_term_children('14', 'category'); query_posts(array('category__not_in' => array_merge(array('14'), $child_cats))); }14 is the ID number of the parent category that you want to exclude, including its children.
here is the topic previously talked about on here:
http://ww.wp.xz.cn/support/topic/261039?replies=2Forum: Themes and Templates
In reply to: dynamic categories viewingThanks for the direction =]
I think i can use some of the built in parameters and it should it the hard.
I think i can write a few if elseif statements with these parameters:
-child_of
-exclude or includeI will work on it today and see if i can come up with some php code to do this. Thanks again
Ch4sethe5un
http://www.myfonts.com/WhatTheFont/
You can try this. I haven’t tried it yet, but i just did a quick google search.
enjoy,
ch4sethe5unForum: Installing WordPress
In reply to: Headers problemHello,
I had THE SAME EXACT PROBLEM. here is a few answers
http://ww.wp.xz.cn/support/topic/235824
=]
Forum: Installing WordPress
In reply to: I can install WP, but there is a warning at the topOK. so it may be the editor that is making everything F&%*ed up…
I opened a new wp-config.php in notepad and editted in the information to my DB.
I saved it as wp-config.php in ANSI encoding (which is a notepad option when saving files ) and that fixed the problem.
I’m just curious now…How do i edit files so that they all save in ANSI encoding by default, under expression web 2?
Thanks again for your peoples help.
ps. There was white space at the very bottom of the wp-config.php file after the closing php tag (i fixed that of course). I did not do anything to it. That was directly there from unzip. BUT why is it there by default?