And if I use a custom query like this:
$querystr =”
SELECT $wpdb->posts.* FROM $wpdb->posts
LEFT JOIN $wpdb->postmeta ON ($wpdb->posts.ID = $wpdb->postmeta.post_id)
WHERE $wpdb->posts.post_status = ‘publish’
AND $wpdb->postmeta.meta_key = ‘isla’
AND $wpdb->postmeta.meta_value = ‘1’
AND $wpdb->posts.post_type = ‘post’
ORDER BY $wpdb->posts.post_date DESC”;
$pageposts = $wpdb->get_results($querystr, OBJECT);
Can i use a next_posts and previous_posts functions??
Ok…
Inserting:
<?php query_posts($query); ?>
Works correctly…
But im trying display only specific post. The post ids are in a string (1,2,3,4,etc…) where numbers are posts ids.
$post_ids = array(1,2,3,4);
<?php query_posts(“p=$post_ids”); ?>
Only display the first post id…
Any idea…
Thanks…
Sorry but my english!!!
I have readed “Archives with Content”,
http://codex.wordpress.org/Pages#Archives_with_Content
it’s exactly to my page… but don’t work…
The post are the same that the index page..