Title: theme problem
Last modified: August 21, 2016

---

# theme problem

 *  Resolved [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * (@magdy-aboelmagd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/)
 * Hi dear
    i guess i have theme problem with your plugin, the theme don’t call 
   the photo from the link please help me whats the code i must change to me the
   plugin work but care please i am not advanced PHP user
 * thank you
 * [https://wordpress.org/plugins/external-featured-image/](https://wordpress.org/plugins/external-featured-image/)

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

 *  Plugin Author [Nelio Software](https://wordpress.org/support/users/nelio/)
 * (@nelio)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5154956)
 * Hi! What theme are you using? If we could take a look at it, we’d be able to 
   tell you what to change.
 *  Thread Starter [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * (@magdy-aboelmagd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5154976)
 * Official v1.4.1
 *  Plugin Author [Nelio Software](https://wordpress.org/support/users/nelio/)
 * (@nelio)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5154983)
 * It looks like this theme is not available for free. If you want me to take a 
   look at its source code, send us a zip copy of the theme via e-mail (customers
   AT neliosoftware DOT com); I’ll try to figure out how to fix the compatibility
   issue.
 *  Thread Starter [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * (@magdy-aboelmagd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155047)
 * OK, that is my them
 * [https://www.dropbox.com/s/i3d6hwyl43xxn3g/official.zip](https://www.dropbox.com/s/i3d6hwyl43xxn3g/official.zip)
 *  Plugin Author [Nelio Software](https://wordpress.org/support/users/nelio/)
 * (@nelio)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155054)
 * Hi! Thanks for the link. It is very complicated to offer a proper solution for
   this theme; there are many, many different files that have to be edited in order
   to be able to use external featured image. Nonetheless, I found a simple workaround
   that should do the trick. Please note you’ll have to edit a couple of files (
   using the _Theme Editor_ in WordPress).
 * **Warning:** Before editing any PHP files, make sure you have a backup of your
   WordPress installation. If anything goes wrong, you’ll want to have it 😉
 * **File 1:** `admin/bdayh.php`. Lines 2336-2343 have the following code:
 *     ```
       function bd_post_image($size = 'thumbnail'){
         global $post;
         $image = '';
         $image_id = get_post_thumbnail_id($post->ID);
         $image = wp_get_attachment_image_src($image_id,
         $size);
         $image = $image[0];
         if ($image) return $image;
       ```
   
 * Just add the following code **after** the previous fragment, without deleting
   any existing code:
 *     ```
       // ******************************************************************
         // ******************************************************************
         $image = get_the_post_thumbnail( $post->ID, $size );
         if ( $image ) {
           $image = str_replace( '<img src="', '', $image );
           $image = str_replace( '" />', '', $image );
           return $image;
         }
         // ******************************************************************
         // ******************************************************************
       ```
   
 * **File 2:** `aq_resizer.php`. Lines 26-27 have the following code:
 *     ```
       //validate inputs
         if(!$url OR !$width ) return false;
       ```
   
 * Just add the following code **after** the previous fragment, without deleting
   any existing code:
 *     ```
       // ******************************************************************
         // ******************************************************************
         if ( strpos( $url, 'data:image/gif;' ) === 0 ) {
           if ( !$height )
           $height = int( $width * 2 / 3 );
           $size = sprintf( 'style="width:%spx;height:%spx;', $width, $height );
           return str_replace( 'style="', $size, $url );
         }
         // ******************************************************************
         // ******************************************************************
       ```
   
 * I’ve tested it on a local installation and it looks good (there are external 
   featured images in the _Latest Posts_ page). There might be some cases in which
   you’ll need to tweak your CSS files.
 * Please let us know if this works!
 *  Thread Starter [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * (@magdy-aboelmagd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155070)
 * the first code has error
    Parse error: syntax error, unexpected ‘&’ in themes/
   official/admin/bdayh.php on line 2347
 * sorry i am not coder 🙁
 *  Plugin Author [Nelio Software](https://wordpress.org/support/users/nelio/)
 * (@nelio)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155077)
 * Please, send us your e-mail (via e-mail, do not post it here) and I’ll send you
   a modified copy of your theme.
 *  Thread Starter [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * (@magdy-aboelmagd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155127)
 * have been solved thank you so much

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

The topic ‘theme problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-featured-image_947a5f.svg)
 * [Nelio External Featured Image (discontinued) - Available in Nelio Content](https://wordpress.org/plugins/external-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/external-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-featured-image/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [magdy aboelmagd](https://wordpress.org/support/users/magdy-aboelmagd/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/theme-problem-49/#post-5155127)
 * Status: resolved