Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter varsur

    (@varsur)

    Got it how to change the display order. Please let me know if there is a way to delete and ignore re-syncing it certain photos and add description.

    Plugin Author Mike Auteri

    (@mauteri)

    Glad you found the ordering attribute. I plan on adding a UI in a future release to make that stuff easier and more visible.

    I plan to add an ignore photo attribute, but have no had the chance to add that in. I’ll try and get that in for you as soon as I can.

    Plugin Author Mike Auteri

    (@mauteri)

    Ok, I just put out a quick update for you (update to version 0.5.5 of the plugin). I added an ignore attribute to the shortcode.

    So, best way to include this (until I build the UI I plan on building at some point) is to either look at the source where you are including the gallery. Each photo has a unique ID associate with it that looks like fbps-photo-479852585508130. You want that number part, so this: 479852585508130. Add that to the ignore attribute like this: ignore=”479852585508130″.

    You can also find the ID when you look at the photo file in WordPress Media Library. Example: 10439532_311522255674498_7433145291522949475_n.jpg, the 311522255674498 is the ID you want.

    If you want to ignore more than one photo, just add a comma between them: ignore=”479852585508130,480145718812150″.

    Hope that helps!
    Mike

    Thread Starter varsur

    (@varsur)

    This is great. Is there anyway to add custom description to photos?

    Plugin Author Mike Auteri

    (@mauteri)

    Glad that helped you!

    As far as changing the description, I have to think of how useful something like that would be to everyone that uses the plugin. It may warrant a filter that can be used to override descriptions, but again, I have to think about it. For now, if you have some JavaScript/jQuery skills, you can rewrite the text within the markup. Something like this would do the trick:

    jQuery(‘#fbps-photo-464535993706456 .lg-fbps’).text(‘New description here’);

    Just change the 464535993706456 to whatever the image ID is that you want to change the description of. Hope that helps.

    Thread Starter varsur

    (@varsur)

    I can try that. Does the reference to photos gets stored somewhere in database?

    Plugin Author Mike Auteri

    (@mauteri)

    Yes, albums are serialized and stored in the options table.

    Thread Starter varsur

    (@varsur)

    I don’t want to hard code the description in jQuery code. It would be idle to have it stored in DB. For me the use case is simple. My wife have a cake business and the photos on Facebook she uploads does not have price and description but when it comes to website I would like to add price and brief description.

    Plugin Author Mike Auteri

    (@mauteri)

    I that case I would advise using the plugin to pull in the image content, and using a different, more general gallery plugin to display it on the page so you can edit descriptions and what not.

    I’m glad you found out how to change the order to descending – but could you let me know how to do it! Thanks

    Plugin Author Mike Auteri

    (@mauteri)

    Hi CraigGilman,

    The order is descending by default, but this is how you manipulate the order in the shortcode:

    [fb_album id=8720954366 order=asc] (desc is default)

    -Mike

    • This reply was modified 9 years, 10 months ago by Mike Auteri.
Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Displaying photos descending’ is closed to new replies.