Code Monkey home page Code Monkey logo

Comments (4)

chuckreynolds avatar chuckreynolds commented on May 23, 2024

So first off... let me just say that FB changes stuff ALL THE TIME... I've changed that sort order twice now trying to appease the FB gods. lol. Technically the only real alternative is to only throw one image up to them but I thought that'd be bad for most people; and even then they don't always 'listen' to what OG tags tell them. I think the way it works now is, generally across the board, fine - the problem is how they seem to randomly choose what gets displayed on their end as default. Back in the day when I made this it was pretty straightforward and they displayed what you presented in code. These days FB makes so many changes and decisions regardless of what you tell them in code I tend to just ignore the random issues anymore because there's really nothing I/we can do about them and when they change again it sometimes just works out.
I'm not into adding a sort order option in the settings... the point of the plugin was to be a drop-in and roll with little to no user touch needed. I could go super crazy and add all this functionality but at that point it's not the plugin I wanted to make.

from wpfbogp.

chuckreynolds avatar chuckreynolds commented on May 23, 2024

ya. more support about it. https://wordpress.org/support/topic/plugin-fetches-default-image-even-with-ft-image-present
We can flip the order again so the fallback goes last. that's the simple fix but I'd hate to add another option in there to do it. anymore the fallback image thing doesn't work well with it pulling content images too.

Perhaps the order should go...

  1. if Featured image
  2. if Fallback image
  3. content images

I'm shitty at arrays..and coding lol.. but.. it should do a better job of injecting items into the array because right now it's just appending them afaik. hence flipping the order puts the default at the top. cc @tordans

from wpfbogp.

chuckreynolds avatar chuckreynolds commented on May 23, 2024

@tordans what would you think if I didn't display the default/fallback image if we have a featured image? If you set a featured it'll come first in the array - any images found in the body would come after that.

Was looking into array_splice for the default image to always insert it second, after the featured image, but thinking about it... I don't think a default image needs to be given if a featured is explicitly set. thoughts?

from wpfbogp.

chuckreynolds avatar chuckreynolds commented on May 23, 2024

I'd say for now this is patched in 13a2ad4

feel free to continue the discussion however

from wpfbogp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.