Title: lucentx's Replies | WordPress.org

---

# lucentx

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Thumbnails..](https://wordpress.org/support/topic/thumbnails-27/)
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/thumbnails-27/#post-3151619)
 * You could do something like this inside the loop:
 *     ```
       <?php
         $size = 'thumbnail'; //thumbnail, medium, large or full
         echo get_the_post_thumbnail(get_the_ID(), $size, '');
       ?>
       ```
   
 * Or if you want to create a custom size you can do something like this:
 *     ```
       <?php
       if ( function_exists( 'add_image_size' ) ) {
         add_image_size( 'homepage-thumb', 220, 130, true );
       }
       echo get_the_post_thumbnail(get_the_ID(), 'homepage-thumb', $attr);
       ?>
       ```
   
 * More info [here](http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail)
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-417/)
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-417/#post-3139261)
 * Can you post the contents of your wp-config.php so we can have a better look 
   at it?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Changing fonts colors](https://wordpress.org/support/topic/changing-fonts-colors/)
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/changing-fonts-colors/#post-3140724)
 * Add a css color property like [here](http://jsfiddle.net/UuWHG/)
 * For more info go to [css color property](http://www.w3schools.com/cssref/pr_text_color.asp)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Styling comments page](https://wordpress.org/support/topic/styling-comments-page/)
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/styling-comments-page/#post-3140259)
 * Try adding the padding only to the targeted pages. In this case for single pages:
 *     ```
       .single .entry-content {
           padding: 25px;
           overflow: hidden;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] [Plugin: WordPress SEO by Yoast] Another 3.4 MultiSite ERROR](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/)
 *  [lucentx](https://wordpress.org/support/users/lucentx/)
 * (@lucentx)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-another-34-multisite-error/#post-2831187)
 * I was getting the same error.
 *     ```
       if ( version_compare( $current_version, '1.2.3', '<' ) ) {
       		$opt = get_option('wpseo');
   
       		foreach ( $opt as $key => $val ) {
       			if ( !in_array( $key, array('ignore_blog_public_warning', 'ignore_tour', 'ignore_page_comments', 'ignore_permalink', 'ms_defaults_set', 'version', 'disableadvanced_meta', 'googleverify', 'msverify', 'alexaverify') ) ) {
       				unset( $opt[$key] );
       			}
       		}
   
       		update_option('wpseo', $opt);
       	}
       ```
   
 * It seems that the one that’s causing the error are the options. The $opt variable
   above is trowing a string when it’s supposed to be an array. The only fast way
   that I’ve seen is by updating the settings on the Yoast WordPress SEO dashboard.

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