Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Vote it Up – Post Order
    Thread Starter Vertaxe

    (@vertaxe)

    Hi nanobyte,

    Note that the given $query here is just an example, you can put any query you like.

    You should only need to change the $query, eg.

    $query = "SELECT * FROM wp_posts WHERE post_type = 'post' ORDER BY post_date DESC";

    And the loop content, here is an example:

    <?php
    $post = get_post(get_the_ID());
    
    DisplayVotes($post->ID);
    echo
    '
    '<b>'.$post->post_title.'</b>'.
    $post->post_content;
    
    // etc
    
    ?>

Viewing 1 replies (of 1 total)