• Resolved HelgaTheViking

    (@helgatheviking)


    I read your FAQ about why you aren’t using shortcodes and think that problem of getting content on every page load could be mitigated with transients.

    The “magic tags” are processed when you save the page

    I like that you’re thinking about constantly reloading a remote gallery, but there’s nothing preventing you from doing the same thing as your magic tags, with a shortcode. strpos() the shortcode (probably the same way you are doing the magic code), store the content as post meta/transient and then display the stored content via the shortcode callback.

    I think this would make it a lot more user friendly and even opens you up to a tinymce button. I have clients that will never be comfortable in the “html editor” and frankly i don’t want them in there.

    cheers!

    PS- if you’re on github or equivalent I might be able to send a pull request.

    https://wordpress.org/plugins/facebook-photo-fetcher/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author justin_k

    (@justin_k)

    Hi helgatheviking,

    Great idea! I wasn’t aware of the transients API when I first wrote this plugin, and while changing to shortcode doesn’t really “add” any functionality per se, I can see that avoiding the html editor would be preferable for very beginner-level users.

    Aside from maintenance & bug fixes I haven’t really been adding features for some time, though I would like to (+intend to) start back up as soon as time permits. The first features I plan to add are mentioned in FAQ9: http://www.justin-klein.com/projects/facebook-photo-fetcher/#faq9). I’ve noted this in my tracker & will also keep it in mind.

    I’m not on Github, but if you do end up implementing this feel free to send me a patch (there’s a contact form on my website, I’ll reply via e-mail). Alternatively, I think the only modifications would be needed in function fpf_find_tags() – so I could potentially add a filter, allowing you to use your custom shortcode-based implementation without breaking future updates if or until I get around to integrating it myself.

    Thread Starter HelgaTheViking

    (@helgatheviking)

    Definitely doesn’t add functionality, but I think shortcodes drastically improve the UX in comparison to magic tags.

    I probably shouldn’t be working on it, but I did just get something half-working. Is it the best approach I couldn’t say, but you can play around with it. I will contact you via your website.

    Plugin Author justin_k

    (@justin_k)

    Got it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: Use shortcodes meta/transients’ is closed to new replies.