• Is it possible to list the latest postings in the guestbook in the main page sidebar?

    This way my guests can easily see the newest entries in the guestbook.

Viewing 1 replies (of 1 total)
  • It’s possible.
    Use the plugin Exec-PHP and write your desire SQL, PHP and CSS code in a widget textbox.

    like this one:

    <?php
    global $wpdb;
    $table_name = $wpdb->prefix . "dmsguestbook";
    
    $query = $wpdb->get_results("SELECT * FROM  $table_name");
    
    foreach ($query as $result) {
    echo $result->message . "";
    }
    ?>

    I will write a sidebar plugin in the near future.

    Daniel

Viewing 1 replies (of 1 total)
  • The topic ‘Last postings in sidebar?’ is closed to new replies.