WordPress.org

Forums

  1. cocinaor
    Member
    Posted 1 year ago #

    Hello,

    maybe this is a dumb question. Sorry for that :(

    I'm trying to get rid of NextGen Gallery by converting it's [singlepic] tags to standard HTML tags (the <img src> thing).

    What I need to know is if NGFB can handle that. I think that the answer is yes, but I'm not sure where I read that.

    Can you help me?
    Thank you!

    https://wordpress.org/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Sure thing - no problem.

    Are you moving the images from NGG back to the Media Library, or leaving them in the existing folder?

    If you move them to the Media Library, make sure your <img/> tags contain the data-wp-pid=# attribute (so NGFB Open Graph+ can fetch the appropriate image size from the Media Library). When you add images from the Admin Editor, that attribute is added automatically, but you mentioned creating the <img/> tag manually, so it's worth mentioning. ;-)

    If you're keeping the images where they are, include accurate width and height attributes so NGFB Open Graph+ can judge if the images are large enough to be used.

    Let me know if you have any more questions.

    js.

  3. cocinaor
    Member
    Posted 1 year ago #

    Thank you!

    I'll not move the files. I think it is the easiest. The only problem that I've now is that I dont know each picture size. :(

    Can I use the plugin without those attributes?

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, there's another way -- you can also specify the path to the full size image with the data-share-src attribute like this:

    <img data-share-src="http://path/image.jpg" src="http://path/image-thumb.jpg" />

    Make sure you list data-share-src first so the PHP regex will pick that up first.

    js.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic