Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: No show paging links
    Thread Starter grankan

    (@grankan)

    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??

    Thread Starter grankan

    (@grankan)

    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!!!

    Thread Starter grankan

    (@grankan)

    I have readed “Archives with Content”,

    https://codex.www.ads-software.com/Pages#Archives_with_Content

    it’s exactly to my page… but don’t work…

    The post are the same that the index page..

Viewing 3 replies - 1 through 3 (of 3 total)