wordpress order posts
- Started
- Last post
- 11 Responses
- forcetwelve
hey all. i've found a few plugins that will order the posts - but not working very well.
does anyone know a good way to be able to order the posts?
- quack0
sort order not working?
- forcetwelve0
they seem to be to change the order from ascending to descending etc. i would like to be able to sort by a custom order.
- forcetwelve0
i've been playing around with this one and it doesn't work in 2.9.2. so frustrating!
i hope WP adds this to the new 3.0 release.
- bukka0
hand code it? is it for a template, homepage ?
- quack0
worked for me, just installed it
- airey0
it may be your webhost (if it's a windows server) or the theme you're using that isn't allowing the reorder script to work.
activate a different theme (use the basic one for easiest) and see if it works then.
- forcetwelve0
ah yes - it does work with the default theme. must be my custom theme muckin it up.
- no doubt loading it's own order behaviour last and therefore changing you're preferred option.airey
- forcetwelve0
any ideas why this isn't working?
———————————————
<?php
/*
Template Name: Thumbs
*/
?><?php get_header(); ?>
<div id="home_content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="intro">
<h1><?php echo get_post_meta($post->ID, 'header', true); ?></h1>
<h2><?php echo get_post_meta($post->ID, 'sub_header', true); ?></h2>
</div><!-- end intro --><?php
$featuredPosts = new WP_Query();
$featuredPosts->query('category_name=project');while($featuredPosts->have_posts... :
$featuredPosts->the_post();?><div id="project">
<div class="transparent_class"><a href="<?php the_permalink() ?>"><img src="<?php $key="thumb"; echo get_post_meta($post->ID, $key, true); ?>"/></a></div>
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
</div><!-- end project --><?php endwhile; ?>
<div class="clearfooter"></div><?php endwhile; else: ?>
<?php endif; ?>
</div><!-- end content -->
<?php get_footer(); ?>
- quack0
pastebin.com/