$src is emty with using plugin “featured image from url 2”
-
The following code is used in the file “content.php” in the theme, but when the plug-in “featured image from url 2” is activated, $src will be blank if an external image URL is specified. I want to specify the flickr URL, so I’m thinking of converting it to the “Square 150” URL, but what is the appropriate variable to use from the plug-in “featured image from url” ?
<?php // the_post_thumbnail( 'post-image' ); $myEyeCatch_attr = array( 'src' => $src, 'class' => "attachment-$size", 'alt' => trim( strip_tags( $wp_postmeta->_wp_attachment_image_alt ) ), 'align' => "left", 'style' => "margin:0 10px 0 0;" ); the_post_thumbnail( 'thumbnail' , $myEyeCatch_attr ); ?>
Version:Featured Image from URL:2.5.4; Site:https://motpresse.votre.space; Theme:Lovecraft 1.30; Plugins:Akismet Anti-Spam (akismet), All In One SEO Pack (all-in-one-seo-pack), Classic Editor (classic-editor), CSS & JavaScript Toolbox (css-javascript-toolbox), Featured Image from URL (featured-image-from-url), Google XML Sitemaps (sitemap), Merge + Minify + Refresh (merge-minify-refresh), Movable Type and TypePad Importer (movabletype-importer), Nelio External Featured Image (discontinued) (nelioefi), Really Simple SSL (really-simple-ssl), WordPress Ping Optimizer (wordpress-ping-optimizer), WP Multibyte Patch (wp-multibyte-patch); PHP:7.1.30; WooCommerce:; WordPress:5.2.2; Pages:3; Posts:30; Products:; fifu_auto_alt:toggleon; fifu_column_height:64; fifu_content:toggleoff; fifu_content_page:toggleoff; fifu_css:; fifu_data_clean:toggleoff; fifu_data_generation:toggleoff; fifu_default_url:; fifu_enable_default_url:toggleoff; fifu_fake:toggleoff; fifu_fake2:toggleon; fifu_get_first:toggleoff; fifu_grid_category:toggleoff; fifu_hide_page:toggleoff; fifu_hide_post:toggleoff; fifu_image_height_arch:; fifu_image_height_cart:; fifu_image_height_ctgr:; fifu_image_height_home:; fifu_image_height_page:; fifu_image_height_post:; fifu_image_height_prod:; fifu_image_height_shop:; fifu_image_width_arch:; fifu_image_width_cart:; fifu_image_width_ctgr:; fifu_image_width_home:; fifu_image_width_page:; fifu_image_width_post:; fifu_image_width_prod:; fifu_image_width_shop:; fifu_lazy:toggleoff; fifu_original:toggleoff; fifu_ovw_first:toggleoff; fifu_pop_first:toggleoff; fifu_priority:toggleoff; fifu_save_dimensions:toggleoff; fifu_save_dimensions_all:toggleoff; fifu_social:toggleoff; fifu_wc_lbox:toggleoff; fifu_wc_zoom:toggleoff;
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘$src is emty with using plugin “featured image from url 2”’ is closed to new replies.