Title: freese's Replies | WordPress.org

---

# freese

  [  ](https://wordpress.org/support/users/freese/)

 *   [Profile](https://wordpress.org/support/users/freese/)
 *   [Topics Started](https://wordpress.org/support/users/freese/topics/)
 *   [Replies Created](https://wordpress.org/support/users/freese/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/freese/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/freese/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/freese/engagements/)
 *   [Favorites](https://wordpress.org/support/users/freese/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EWWW Image Optimizer] when activated my site is full of Symbols, now white](https://wordpress.org/support/topic/when-activated-my-site-is-full-of-symbols-now-white/)
 *  [freese](https://wordpress.org/support/users/freese/)
 * (@freese)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/when-activated-my-site-is-full-of-symbols-now-white/#post-6263399)
 * I had that issue too. Using Theme **Enfold** and **Elision** on two separate 
   Websites. In both of them, after deactivating the plugin, everything was back
   to normal. Happened with the last update: 2.4.5. Php Version is: 5.6.
    I’m using
   WP Total Cache (v.0.9.4.1)and using the “Rewrite URL structure” feature on the
   minification settings. This is quite a dumber, since your plugin is really good!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Cannot access wp-admin after updating to 2.2.9](https://wordpress.org/support/topic/cannot-access-wp-admin-after-updating-to-229/)
 *  [freese](https://wordpress.org/support/users/freese/)
 * (@freese)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-wp-admin-after-updating-to-229/page/2/#post-5583050)
 * For me the issue seems to have been was the php version. My hoster had v5.2 as
   default version. I updated to 5.3 and I could update woocommerce to 2.3 without
   an issue. I was having the same issue described in this thread before.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] [Plugin: Polylang] BUG:Category of default language lost after updating post in other language](https://wordpress.org/support/topic/plugin-polylang-bugcategory-of-default-language-lost-after-updating-post-in-other-language/)
 *  Thread Starter [freese](https://wordpress.org/support/users/freese/)
 * (@freese)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-polylang-bugcategory-of-default-language-lost-after-updating-post-in-other-language/#post-2754727)
 * Ohh Wordoress v. is 3.3.2. Plugin version: 0.8.5 (latest up till now)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show Search Result Count in Homepage outside of WordPress](https://wordpress.org/support/topic/show-search-result-count-in-homepage-outside-of-wordpress/)
 *  Thread Starter [freese](https://wordpress.org/support/users/freese/)
 * (@freese)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/show-search-result-count-in-homepage-outside-of-wordpress/#post-1251598)
 * Hello community:
    I have a short question regarding showing information from 
   WordPress outside of the WordPress installation: For a project at the company
   I work, I need a Script that shows up the search result count of a wordpress 
   blog, outside of it. What I mean is a separate website, that is used as a metasearch
   engine (searches in different blogs), I have to show the search result number
   from a wordpress blog. There are different approaches that I have in mind. I 
   could maybe use Tip Nr. 8 from this Smashing Magazine Article:
 * [http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/](http://www.smashingmagazine.com/2009/06/10/10-useful-wordpress-loop-hacks/)
 * which means creating my own WordPress Loop using The WP_Query Object in a File
   at the root folder and then inlude this php file in the separate website? or 
   as a second approach I could try and modify this script from the wordpress forum:
 * [http://wordpress.org/support/topic/226572?replies=15](http://wordpress.org/support/topic/226572?replies=15)
 * so that it pulls, not the the number of posts in the WP database but the search
   results count. Only I don’t know how to achieve it.
 * Of course the query:
 *     ```
       <?php
       // ...Call the database connection settings
       require( path to /wp-config.php );
   
       // ...Connect to WP database
       $dbc = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
       if ( !$dbc ) {
           die( 'Not Connected: ' . mysql_error());
       }
       // Select the database
       $db = mysql_select_db(DB_NAME);
       if (!$db) {
           echo "There is no database: " . $db;
       }
   
       // ...Formulate the query
       $query = "
           SELECT *
           FROM <code>wp_posts</code>
           WHERE <code>post_status</code> = 'publish'
           AND <code>post_password</code> = ''
           AND <code>post_type</code> = 'post'
           ";
   
       // ...Perform the query
       $result = mysql_query( $query );
   
       // ...Check results of the query and terminate the script if invalid results
       if ( !$result ) {
           $message = '<p>Invalid query.</p>' . "\n";
           $message .= '<p>Whole query: ' . $query ."</p> \n";
       	die ( $message );
       }
   
       // Init a variable for the number of rows of results
       $num_rows = mysql_num_rows( $result );
   
       // Print the number of posts
       echo "$num_rows Posts";
   
       // Free the resources associated with the result set
       if ( $result ) {
           mysql_free_result( $result );
           mysql_close();
       }
       ?>
       ```
   
 * hast to be different, but I´m really not a php master. Thank you very much for
   your support! Thanks a lot!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Article count on external index.php?](https://wordpress.org/support/topic/article-count-on-external-indexphp/)
 *  [freese](https://wordpress.org/support/users/freese/)
 * (@freese)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/article-count-on-external-indexphp/#post-932829)
 * Thanik you very much **dbmartin**!!
    Your post has been really useful to me. 
   I have but another question tough. For a project at the company I work, I need
   a Script that shows up the search result count of a wordpress blog, outside of
   it. What I mean is in a separate website, that is used as a metasearch engine,
   I have to show the search result number from a wordpress blog. How could I modify
   your script for pulling the number of posts in the WP database so that it pulls
   the search count?
 * Of course the query:
 *     ```
       // ...Formulate the query
       $query = "
           SELECT *
           FROM <code>wp_posts</code>
           WHERE <code>post_status</code> = 'publish'
           AND <code>post_password</code> = ''
           AND <code>post_type</code> = 'post'
           ";
       ```
   
 * hast to be different, but I´m really not a php master. Thank you very much for
   your support!

Viewing 5 replies - 1 through 5 (of 5 total)