WordPress.org

Ready to get started?Download WordPress

Forums

widget page stops working (6 posts)

  1. danjul2
    Member
    Posted 5 years ago #

    trying to add this

    <?php echo $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures"); ?>

    to a text widget that suports <php>
    but it will just destroy the widget page

    tryed three different plugins that suports php in text widget..
    how can i make this work..?

    cheers

  2. MichaelH
    Member
    Posted 5 years ago #

  3. danjul2
    Member
    Posted 5 years ago #

    Yes, i tryed that one, and "Daiko's" and one more..
    none work :-/

    anyone else?

  4. MichaelH
    Member
    Posted 5 years ago #

    Try putting that code in a template file such as index.php to see if it displays the results.

  5. danjul2
    Member
    Posted 5 years ago #

    yes its working to have in a template file.
    but when having it in a widget it breaks the half page in both the admin>widget page and on the main page>sidebar

  6. danjul2
    Member
    Posted 5 years ago #

    dont know whats worse.. this...
    or the missing parts in my new ikea sofa, that ive spent the evening trying to build

    ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags