problem with quotes on new post

$post_content=”"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit…"”; Try encoding special characters. See: http://www.w3schools.com/tags/ref_entities.asp & http://php.net/manual/en/function.htmlentities.php

WordPress: Interact with Database Query Data and Login

Connecting a mobile app directly to the database is possible, but ill-advised. WordPress provides great tools for integrating your application with your site using the XML-RPC interface. WordPress has open-source Android and iOS applications, so there’s some great source code there to get you started. http://codex.wordpress.org/XML-RPC_WordPress_API http://ios.wordpress.org/development/ http://android.wordpress.org/development/ In addition, the Jetpack plugin provides a … Read more

WordPress database error Unknown column

There is a SQL query in the theme file /themes/ExtraGrid/content-single.php, and it is asking for a column that doesn’t exist. This seems to be a commercial theme, so we can just guess why that query exists. Maybe you forgot to set a required theme option, or your tables are just incomplete.

Using queries in and i see 7000+queries?

195 queries for one page is a lot. 7000 queries is not a lot, it is insane. Install Query Monitor. It tracks all queries and presents them in groups. I don’t know if it can track that many queries, this is probably an interesting stress test. 🙂 Find the source of those queries, deactivate it. … Read more

How can I rebuild my websites while I don’t have databases?

Your database contains all your data for each of your sites. Without the databases, your sites will not have any posts, pages, site configuration, users, comments, or settings. If you stand these back up, you will have to create blank databases for each and install WordPress from scratch. You can follow the “Famous 5-minute Installation” … Read more

wpdb prepare without placeholder

Short answer: You should use the way described in the documentation, sanitize anything that goes in an SQL query, and always use prepared statements. Slightly longer answer: The main use of $wpdb->prepare() is to prevent against SQL injection attacks. Here, we don’t know where ‘foo’, 1337 and ‘%bar’ come from. And that’s somewhat the deciding … Read more