Comments (4)
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.
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...
- if Featured image
- if Fallback image
- 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.
@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.
I'd say for now this is patched in 13a2ad4
feel free to continue the discussion however
from wpfbogp.
Related Issues (20)
- setup unit tests and travis stuff someday
- adding debugging support helpers to source output HOT 1
- look into force_fallback loop and get featimg working on pages that are the blog HOT 1
- Looking for feedback: Show fallback image if a featured image is found? HOT 6
- After upgrading to 2.0.12 it is adding trailing slash to url HOT 2
- trailing slashes being added onto urls with forced file names HOT 1
- update admin pages html after 4.3
- look at moving prefix to <head> instead of <html> per new doc recommendation
- quicknote: check title attrib vs the title HOT 1
- remove requirement for fb:admins and/or fb:app_id per latest spec
- should make description a little smarter
- test urls with params
- Admin screen heading tags with WordPress 4.4 HOT 1
- description feature request fix
- preg_replace() /e modifier is now deprecated. Instead, use the preg_replace_callback() function HOT 2
- Protocol-less image URLs aren't handled properly HOT 1
- Better sanitize ALL input fields
- Annoying advice in WPMU HOT 1
- setup notice on all pages: reconsider all pages, also make dissmissable
- Featured image chosen from gallery is not picked up as OpenGraph image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wpfbogp.