AKNL
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Pagination with query_posts not workingeasy as
Got it <?php query_posts('posts_per_page=2' . '&paged=' . get_query_var('paged')); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
Forum: Themes and Templates
In reply to: Pagination with query_posts not workingDownsized my query, looks like posts_per_page is totally ignored. Anyone got an idea on how to fix this? I need to display 2 sticky posts per page.
<?php query_posts(array('posts_per_page' =>2, 'paged' => get_query_var('page'), 'post__in'=>get_option('sticky_posts'))); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content(''); ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?> <span class="older"><?php next_posts_link('? Older Entries'); ?></span> <span class="newer"><?php previous_posts_link('Newer Entries ?'); ?></span>
Forum: Themes and Templates
In reply to: Pagination with query_posts not workingI’m using ‘cat=-1’ because since ID 1 is for posts I want to exclude from being showcased at this point.
Forum: Fixing WordPress
In reply to: Pagination with custom queries possible?Got a better solution
<?php query_posts('meta_key=imagetype&meta_value=photoshop&posts_per_page=10' . '&orderby=modified&paged=' . get_query_var('paged')); ?>
Works like a charm!
Same error, disabled the plugin to minimize the damage
Forum: Themes and Templates
In reply to: remove /category/ from wp_list_categoriesHi Veganist,
Thanks for your reply. If you manualy type the URL like https://tiltshifted.com/andrekreft/ instead of https://tiltshifted.com/category/andrekreft/ you get the same results. Since it will both show all posts filed under category andrekreft. So I think there must be a way to change this in the standard wp_list_categories code.
Anyone else might have an idea?