External images not loading or found?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #9847
    Mark Granoff

    I purchased this plug-in because it seemed like it would definitely do what I needed.

    My post content uses another plugin to embed content from other websites via oEmbed. The resulting HTML from this plugin includes an IMG tag with a valid URL for the image I want set as the featured image. Here is the HTML that this other plugin generates:

    <div class=" content_cards_card">
    			<div class="content_cards_image">
    				<a class="content_cards_image_link" href="http://www.providencejournal.com/news/20170726/national-grid-seeking-53-percent-rate-hike" target="_blank">
    					<img src="https://i2.wp.com/www.topmarkenergy.com/wp-content/uploads/2017/07/ar-170729500.jpg?fit=1024%2C739&ssl=1" alt="National Grid seeking 53-percent rate hike">				</a>
    	<div class="content_cards_title">
    		<a class="content_cards_title_link" href="http://www.providencejournal.com/news/20170726/national-grid-seeking-53-percent-rate-hike" target="_blank">
    			National Grid seeking 53-percent rate hike		</a>
    	<div class="content_cards_description">
    		<a class="content_cards_description_link" href="http://www.providencejournal.com/news/20170726/national-grid-seeking-53-percent-rate-hike" target="_blank">
    			<p>Under the proposal, the average monthly bill for homeowners would climb from $89.06 to $106.19.</p>
    	<div class="content_cards_site_name">
    		<img src="http://www.providencejournal.com/Global/images/favicons/providence-journal_favicon.ico" alt="providencejournal.com" class="content_cards_favicon"/>		providencejournal.com	</div>

    Why can’t Quick Featured Images Pro find this image?


    Mark Granoff

    Note: It is the first IMG tag I am concerned with, the one inside the DIV with class “content_cards_image”.

    Martin Stehle

    In the description of that “Embed” option you can see the link which leads you to the supported oEmbed providers. http://www.providencejournal.com is not in that list.

    And to use oEmbed the URL is sufficient, not the entire HTML object like IMG in your case.

    But QFIP works with the option for images on external servers. If you would use that the image would be downloaded, uploaded to the media library and set as featured.

    Mark Granoff

    The oEmbed rules are not the issue, really. The third-party plugin, contentcards, is rendering the correct image using the oEmbed tags in that site, even though that site is not “supported” by WordPress’s native eEmbed capabilities.

    I think what may be happening, and you can verify this, is that when QFIP does its magic, it is *not* executing embedded shortcodes. Meaning, the content provided by contentcards isn’t even being considered, because it isn’t rendered. Is this case? Or does QFIP render posts fully (run all shortcodes) before looking for images?

    That being said, I put a bare link to an external image in the body of a post, and QFIP still did not pick it up. And I am using the option for images on external servers.

    Any other ideas? I had high hopes for this plugin to “just work”, but it does not appear to be doing for external images what it claims.

    Martin Stehle

    You are right: QFIP does not execute shortcodes. Which shortcode do you mean?

    And, yes, QFIP does not render oEmbed data which are placed as meta data in the HTML document. It looks for oEmbed URLs in the post content.

    To use the option for external images please use the image URL in an IMG element. QFIP will recognize that URL in the IMG element and will do the task.

    Mark Granoff

    I an using the Content Cards plugin to handle oEmbed content, which works really nicely.

    I found a workaround to make QFIP do what I need it to do, which is essentially your suggestion, with a twist.

    My content essentially looks like this:

    My own thoughts...
    [contentcards url=...]
    <img class="hidden" src="..." />

    I defined a custom CSS class: .hidden { display: none; }, which effectively hides the image when the post is viewed (because contentcards is showing the image) but allows QFIP to work as designed.

    This makes my own workflow a little more complicated to create a post, but I can live with it, as I am posting anywhere from zero to twice a day.

    • This reply was modified 3 years, 4 months ago by Mark Granoff.
    • This reply was modified 3 years, 4 months ago by Mark Granoff.
    Martin Stehle

    Great to read that!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Choose your currency:

Converted prices are for reference only - all orders are charged in € Euros (€) EUR.
  • USDUS Dollars ($)
  • EUREuros (€)
  • GBPPounds Sterling (£)
  • CADCanadian Dollars ($)
  • AUDAustralian Dollars ($)
  • BRLBrazilian Real (R$)
  • INRIndian Rupee (₹)
  • CZKCzech Koruna
  • DKKDanish Krone
  • HKDHong Kong Dollar ($)
  • HUFHungarian Forint
  • ILSIsraeli Shekel (₪)
  • JPYJapanese Yen (¥)
  • MYRMalaysian Ringgits
  • MXNMexican Peso ($)
  • NZDNew Zealand Dollar ($)
  • NOKNorwegian Krone
  • PHPPhilippine Pesos
  • PLNPolish Zloty
  • SGDSingapore Dollar ($)
  • SEKSwedish Krona
  • CHFSwiss Franc
  • TWDTaiwan New Dollars
  • THBThai Baht (฿)
  • TRYTurkish Lira (₺)
  • RUBRussian Rubles