mindeater – web / mobile solutions and engineering
Skip to content
  • About
  • Services
  • Scattered Notes
    • WordPress
    • Web Programming
    • MySQL
  • Contact

WordPress Plugin Query

Posted on: November 18, 2010 by mindeater

I am often cutting and pasting this in wordpress plugins

$query = “SELECT id, post_title FROM ” . $wpdb->prefix . “posts WHERE post_type = ‘wpf_venue’ AND post_status=’publish'”;
$venues = $wpdb->get_results ( $query, ARRAY_A );

Posted in plugins, Wordpress | Tagged $wpdb, database connection, plugin, sql, wordpress

Post navigation

  • ← Previous
  • Next →

Web Hosting

Web Special

Tweets by @mindeater123

$wpdb .LCK admin apache captcha cheap software checkbox codex command line css layout curl custom types database connection data manipulation data transfer DOM dreameaver elements essential plugins events find function geocode javascript joomla jQuery lock files maps md5 mysql php phpMyAdmin plugin POST scam software software versions sql submenus table-cell unix vertical alignment web service wordpress xml

© 2023 mindeater – web / mobile solutions and engineering | Powered by JBST