zhaval
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: display info of user with certain role or level ini WP 2.7Yes, sorry, when I wrote “scribu’s” script I actually thought of MichelH’s script. It produces an OK list of user roles as shown above, but no users are displayed, although there are users in some categories, obviously. WP_DEBUG did not give any clues.. thanks, scribu!
Forum: Fixing WordPress
In reply to: Show Posts Of a Certain Category On a PageI actually solved this placing the following code using a query in a template file. However, the navigation is not working — would anyone have an idea why that is? Thank you so much, zh
<?php get_header(); ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $the_query = new WP_Query('cat=36&paged='.$paged.'&showposts=30&orderby=post_date&order=desc'); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> DO STUFF <?php endwhile; ?> <div id="pagenavi"> <?php if(function_exists('wp_pagenavi')) : ?> <?php wp_pagenavi() ?> <?php endif; ?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Show Posts Of a Certain Category On a PageHi,
Moshu — I also think I would need a page which would show certain category posts only. Because I use templates that automaticly generate the menu links depending on the child pages. I wold like one of these pages to be an archive for a certain category. How can I do that using category templates?
Thanks and have a good day, Zh
Forum: Fixing WordPress
In reply to: display info of user with certain role or level ini WP 2.7Hi, this is exactly what I need but when I tried scribu’s script this is what I get (no users listed)
List of users in the role administrator (Administrator):
List of users in the role editor (Editor):
List of users in the role author (Author):
List of users in the role contributor (Contributor):
List of users in the role subscriber (Subscriber):and Jim de Groot’s code produces an empty page. What am I doing wrong? thanks for your answer in advance!
Forum: Themes and Templates
In reply to: Custom fields not accessible in footer.phpThanks! Hvala?!
Forum: Themes and Templates
In reply to: Custom fields not accessible in footer.phpThank you, Ivovic, you solved it. I did try something similar before, but did not use the
<?php global $current_language; ?>
in the footer again — I wonder why this is necessary, seems kind of redundant.
Have a great day!
Forum: Plugins
In reply to: Page ID instead of permalinks in statsI have found out that if you edit/save a page, it starts to show in the stats correctly. It would be a rather strange thing to do for the whole site, but it seems this might help.
Forum: Plugins
In reply to: Page ID instead of permalinks in statsThis happened to me around installing WP 2.2.3 also. But also, when I changed from setting my address in Options from example.com to https://www.example.com. Did you do anything like thos as well? The stats usually shows addresses without the www.
Forum: Plugins
In reply to: Page ID instead of permalinks in statsYes, this is exactly the same problem. I have tried changing domain names in WP Options, reseting the stats, have even rewritten all my incoming domain names to exactly the same manner as stated in WP Options, etc. but nothing helped. The most bizarre thing though is that sometimes some page does show properly..
Forum: Plugins
In reply to: Page ID instead of permalinks in statsI have also activated (and now deactivated) the all-in-one-SEO-pack plugin, which attempts to change the page titles. Could this be the problem?
Forum: Fixing WordPress
In reply to: Comment box not enabledThis is my .htaccess. Couldn’t get my permalinks running. I don’t find the “?” that ugly..
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Forum: Fixing WordPress
In reply to: Comment box not enabledCheck this link, perhaps you can find something helpful..
Forum: Fixing WordPress
In reply to: Comment box not enabledI have resolved the issue. It was a two-fold problem. I used permalinks and when I clicked the “No Comments” link it just threw me to the same site, not to the single post page. After setting permalinks back to default, the single post page showed up — with no comments or comments box. I found out that my theme was missing single.php. And since I have changed my index.php into a static page (no comments) this was a problem. After creating a single.php with comments stuff everything is OK.
Thanks for brainstorming..
(..although I miss permalinks!)
Forum: Fixing WordPress
In reply to: Comment box not enabledThis is what the code in my template is:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h1>” rel=”bookmark”><?php the_title(); ?></h1>
<div class=”meta”><?php the_date(); ?> @ <?php the_time() ?> <?php edit_post_link(__(‘Edit This’)); ?></div><div class=”storycontent”>
<?php the_content(__(‘(more…)’)); ?>
</div><div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?></div>
<div>
<?php comments_template(); // Get wp-comments.php template ?>
</div></div>
Forum: Fixing WordPress
In reply to: Comment box not enabled@mrmist >> I do. I have installed the WP via Fantastico. I don’t know if this matters here, but it was an issue elsewhere — I had to change config.php (as suggested by one of the moderators) in order to see all of the characters we have in our language.