thx2137
Forum Replies Created
-
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Error Message: Connection refusedUpdate: it fixed itself
Here’s the php:
<ul class="nadtytul"> <?php $comment_count = get_comment_count($post->ID); if ($comment_count['approved'] > 0) : ?> <li class="odpowiedzi"><a href="<?php echo get_permalink(); ?>#comments"><?php comments_number('Comment', '1<span> comment</span>', '%<span> comments</span>'); ?></a></li> <?php endif; ?> <li><?php the_time('j M Y') ?></li> </ul>It displays the comment box only if there are comments.
The styling of the box is done with CSS. If you want to know how, look into the CSS file on the page.
Forum: Fixing WordPress
In reply to: found_posts is 0, but posts are being displayedFor those with a similar problem, here’s a solution:
http://ww.wp.xz.cn/support/topic/archives-not-showing-nextprev-windows-only-crazy?replies=5
Forum: Fixing WordPress
In reply to: Archives not showing next/prev – windows only? crazy?Thank you so much, notemper2x!
Forum: Fixing WordPress
In reply to: Archives not showing next/prev – windows only? crazy?I’m having the exact same problem. See here:
http://ww.wp.xz.cn/support/topic/max_num_pages-is-0-but-subsequent-pages-exist?replies=1
Did you manage to find a solution?
Forum: Fixing WordPress
In reply to: Putting the last character of the_content() inside a tagThank you very, very much!
Adding the following line to .htaccess solved the problem for me:
php_flag zlib.output_compression offForum: Fixing WordPress
In reply to: If comments number in Post LoopI don’t know if you still need it, but here’s a solution I’ve found:
<?php $comment_count = get_comment_count($post->ID); ?> <?php if ($comment_count['approved'] > 0) : ?>your html code<?php endif; ?>Forum: Fixing WordPress
In reply to: Custom date format using post_dateThat seems to work only with the_date() and the_time(), which I can’t use outside the Loop. But I’ve found a solution:
mysql2date('j M Y', $post->post_date);