Skip to main content

Home/ Wordpress/ Group items tagged 3.5

Rss Feed Group items tagged

Vernon Fowler

WordPress 3.5 And WPDB Prepare - 0 views

  • “Warning: Missing argument 2 for wpdb::prepare()” How do I fix it? If you are seeing an error after upgrading to WordPress 3.5 that says something like this, you need to upgrade your theme. We have fixed this with all of our themes and they are ready to download and re-install from your account page. What if I have customized my theme’s code and don’t want to upgrade? For those of you who have customized your theme’s code and don’t want to do a full upgrade, you’ll need to take a look at the warning message. Here’s a sample error we have fixed from the Biznify Theme: Warning: Missing argument 2 for wpdb::prepare(), called in /home/mintthem/public_html/demo/wp-content/themes/Biznify/products-pagetemplate.php on line 39 and defined in /home/mintthem/public_html/demo/wp-includes/wp-db.php on line 990 Step 1: Open the file it tells you to open. In this case, it is products-pagetemplate.php and Go to the line it refers to. In this case it is line 39 Step 2: Find the code that looks like this: $wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘$item_number’;”) Step 3: Replace $item_number with %d Step 4: Add $item_number after the last quotation mark. Also, make sure to put a comma before it. (notice the comma before $item_number below) Example: $wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘%d‘;”, $item_number)
  • $price = $wpdb->get_var($wpdb->prepare(“SELECT price FROM $table_name WHERE item_number = ‘%d‘;”, $item_number));
  • WordPress 3.5 And WPDB Prepare
Peter Nilsson

WordPress for Android Version 3.5 Following Google's Material Design Principles - 0 views

  •  
    The new version of WordPress for Android 3.5 includes major changes and improvements and is following Google's materials design principles.
Vernon Fowler

Embeds « WordPress Codex - 0 views

  • Twitter (WordPress 3.4+)
  • Make sure that the URL is on its own line and not hyperlinked
  • SoundCloud (WordPress 3.5+)
  • ...5 more annotations...
  • SlideShare (WordPress 3.5+)
  • Scribd
  • Flickr (both videos and images)
  • Vimeo (note older versions of WP have issues with https embeds, just remove the s from the https to fix)
  • YouTube (only public and "unlisted" videos and playlists - "private" videos will not embed)
1 - 5 of 5
Showing 20 items per page