mrwangkai
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Comment counter shows the same number on all postsI used method provided here and it was resolved.
http://perishablepress.com/press/2008/09/01/multiple-loops-and-multiple-columns-with-wordpress/
Good resource too, MichaelH. 🙂
case closed!
Forum: Themes and Templates
In reply to: Comment counter shows the same number on all postsAnyone?
Forum: Themes and Templates
In reply to: Comment counter shows the same number on all postsOkay, i think i may know why.
I have 2 php files included. one of them is doing query_posts and the other is trying to get_post. Now, when I make one of them invalid, the comment becomes normal.
So my new question is how can you get posts (by using either function) to show articles in 2 different places on the same page?
I used this for the first php file:
<?php global $post; $myposts = get_posts('numberposts=5&category=9'); foreach($myposts as $post) : ?>and this for the second php file:
<?php query_posts('showposts=4&cat=24'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> ... <?php endwhile; ?> <?php endif; ?>Thanks!
Forum: Themes and Templates
In reply to: Comment counter shows the same number on all postsThanks MichaelH,
Same thing, it kept saying Comment (2).
If I were to change the % in the above code to the number 9, the comment will say (9).Using the same code elsewhere, such as on an archive page with all the posts, the number of comment will display correctly (zero meant 0 and two meant 2).
I figured it must be a problem with the theme for that particular section. It’s a customized theme where the original version does not consist this problem.
Any other pointer from anyone? Greatly appreciate it!
Forum: Fixing WordPress
In reply to: How to change permalinks via editing code?dczepiel, I’m not sure if I’m having the same problem as you are. After I made some changes to the Permalinks option (to custom), each time I try to get into the Permalinks option page, it’s just blank. I tried to delete the .htaccess file, but not sure how it can be generated. Please help~ thanks!
Forum: Fixing WordPress
In reply to: Permalinks page is not loadingOkay, I have seen posts that talk about not using
/%postname%/only because it will create problem. And it has, may I know how I can reverse it?Is that a file that I can modify?
Thanks!
Forum: Fixing WordPress
In reply to: get_the_tags and links@boon_ what if you have multiple tags. You solution works great, but I’m not sure how I can limit it to a single tag.
Forum: Plugins
In reply to: Thumbnails on frontpageyou can try placing it in the loop of index.php
this is what I did with mine on CareAce<?php $image = get_post_meta($post->ID, 'thumb', true); $image = ( !empty($image) ) ? $image : 'http://www.careace.net/images/12345.png/'; ?> <a href="<?php the_permalink() ?>"><img class="thumb" src="<?php echo $image; ?>" alt="CareAce" width="140px" /></a>Forum: Themes and Templates
In reply to: Custom Field – Thumbnailsdo you know how you can add a line of text above the image like lifehacker.com has?
Forum: Fixing WordPress
In reply to: get_post_meta helpForum: Fixing WordPress
In reply to: Tag Cloud/Category list to reflects choosen tag@michaelh Very helpful resources, I wasn’t sure what keyword to use to resolve the problem. Thanks! (:
Forum: Plugins
In reply to: Changing the default length of the_excerptHello guys,
@bluegrassboy, awesome help there. 🙂
I realize however, the code only applies to excerpt that was extracted automatically.
In the case of self-inputed excerpt feature in the WP editor, the code doesn’t apply (seems to overwrite that function). Is there a way around it?
Thanks a bunch!
Forum: Plugins
In reply to: Add thumbnail to Post plugin for 2.7 or alternative?Not a plugin but a very handy and straighforward tutorial on how to input this manually. [http://bloggingbits.com/post-thumbnails-in-wordpress/]
I’m trying it out as well. 🙂