Hi!
I have a site which e.g. queries all posts from a custom post type "garden".
like this:
<?php
global $wp_query;
query_posts( array('post_type' => array( 'garden' ),'showposts' => 8, 'paged'=>$paged )
);?>
Now on top I have three buttons: fresh, most viewed, featured
I want to have a "featured" custom field in every post which I can de/activate.
When I click the button e.g. "featured" I only want to see the featured posts from "Custom Post Type--> Garden" with custom field "featured".
I also wish to let thist content load with ajax.
The same for the other Custom post Type e.g.
<?php
global $wp_query;
query_posts( array('post_type' => array( 'house' ),'showposts' => 8, 'paged'=>$paged )
);?>
Here I'd like to see all posts when I come to this page - but when I click on "featured" I just want to load the featured posts in ajax.
I'm really very thankful for any help!
AD