Timeline for WordPress gallery 'post_gallery' filter doesn't work with feeds?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 6, 2012 at 16:24 | history | bounty ended | its_me | ||
Sep 6, 2012 at 13:37 | vote | accept | its_me | ||
Sep 6, 2012 at 12:34 | comment | added | Otto | Feeds contain posts, and yes the filter works in feeds too. And the code you posted works once you remove the is_feed( 'flipboard_feed' ) wrapper bit. I just tried it on a local install and got exactly what I expected to get. What are you expecting to get that you're not getting? | |
Sep 6, 2012 at 2:49 | comment | added | its_me |
And by the way, the reason why it's not working (I think) is because the filter post_gallery is meant only for posts (as the name suggests) and not for feeds.
|
|
Sep 6, 2012 at 2:46 | comment | added | its_me | Following what you said, I just tried this: pastebin.com/G472yUKX — but it doesn't seem to work either. Please let me know if I am doing it wrong. EDIT: I also tried this by the way: pastebin.com/3KHkTij2 | |
Sep 5, 2012 at 15:35 | comment | added | its_me | You said, "You have two major problems. Firstly, you had the if is_feed code inside your own function, and commenting it out was indeed the correct thing to do" — but that means, the first one is not a problem at all, right? (since like you said, that's the way to do it.) | |
Sep 5, 2012 at 15:04 | comment | added | kaiser | +1 for two reasons: A) finding the link and B) being faster by seconds :) | |
Sep 5, 2012 at 14:58 | history | answered | Otto | CC BY-SA 3.0 |