• Resolved robslusar

    (@robslusar)


    hi there.

    i have been using the plugin to show galleries accross a number of pages and it has worked well.

    i am now trying to do the same in the wordpress blog post function, but whilst i am using the correct shortcodes, nothing is actually showing.

    am i doing something wrong or is it not mean to work with blog posts?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    There is no limitation around working for posts – quite a few people use Photonic that way.

    I am not seeing any markup generated by Photonic on your page. Where are the photos supposed to show up? Are they meant to be at the bottom of your post, where you say “Here is a selection of my favourites”? If so, it appears as though you have a slider plugin trying to display the photos there.

    Thread Starter robslusar

    (@robslusar)

    hi there, it is after that line.
    there is no slider there, that large space is being created by photonic but nothing is displaying.

    the code i have used is this

    [gallery type="flickr" user_id='116628307@N08' view='photosets' photoset_id='72157696173729392' media='photos' columns='4' tag_mode='all' sort='date-posted-asc' more='More' layout='masonry' caption='title' thumb_size='s' main_size='k']

    this is similar to the code used on my “pages” which all display fine, the issue is only with blog posts currently.

    thanks

    Thread Starter robslusar

    (@robslusar)

    i would also add that i tested that code on a “page” and it works correctly, but when i paste it into the post it does not.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Umm… that white space is coming due to your slider.

    Right-click is disabled on your site, but if you open up Chrome Inspector, you will see that the space is from the swiper-container. Here is what I see when I do a “View Source”:

    <p>Here is a selection of my favourites.</p>
    <div class="swiper-container" data-autoplay="0" data-loop="1" data-speed="1000" data-slides-per-view="responsive" data-add-slides="1" data-xs-slides="1" data-sm-slides="1" data-md-slides="1" data-lg-slides="1"><div class="swiper-wrapper"><div class="swiper-slide active" data-val=""><div class="img-wrap"><img class="s-img-switch" src="" alt=""></div><div class="description"></div></div></div><div class="pagination hidden"></div><div class="swiper-arrow-right"><div><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div><div class="swiper-arrow-left"><div><i class="fa fa-chevron-left" aria-hidden="true"></i></div></div></div>

    The swiper-container is from another plugin.

    Is it possible that your other plugin is meant to work on posts alone and is overriding the gallery short-code?

    Thread Starter robslusar

    (@robslusar)

    interesting, i will look into that then as i haven’t manually put a slider in so it might be part of the theme.

    Thread Starter robslusar

    (@robslusar)

    thank you for your help with this.
    it was clashing with another plugin. unfortunately it was the plugin that operates my entire visual aspect of the theme, so whilst i can use photonic for my pages, it clashes on my posts.

    hopefully i can find a workaround.

    many thanks

    Plugin Author Sayontan Sinha

    (@sayontan)

    You can try one thing: using an alternative short-code. See the first option under Photonic, Photonic → Settings → Generic Options → Generic Settings → Custom Shortcode.

    First, try setting a value there, such as photonic. Then, in your post, use photonic instead of gallery. If it works you are in luck… but you have to change all your pages where you use gallery to display Photonic galleries, and replace those instances with photonic as well. If it doesn’t work then you cannot use them together.

    At the end of the day I wish pay-for-use themes offered some “opt-in” features this way that let you selectively use some features rather than “lock-in” features; instead the onus almost always falls on folks offering code for free.

    Thread Starter robslusar

    (@robslusar)

    they are showing now, but i think the page format is knocking it off so i will have to review this, but i’m closer than I was before. thank you

    Plugin Author Sayontan Sinha

    (@sayontan)

    As I mentioned in my previous post, in your pages you have to replace the gallery shortcode with photonic (to quote: “but you have to change all your pages where you use gallery to display Photonic galleries, and replace those instances with photonic as well”). Essentially you are telling Photonic, “Don’t use the gallery shortcode to render your galleries because something else is using it, rather use the photonic shortcode”.

    To quote from the description section of the plugin:

    In case you happen to be using a theme or plugin that already overrides the gallery shortcode, Photonic provides you with the option to use your own shortcode for Photonic galleries. This lets your plugins coexist. Bear in mind that if you deactivate Photonic you will have to remove all instances of this custom shortcode, something that is not required if you stick to the gallery shortcode.

    Thread Starter robslusar

    (@robslusar)

    i have made the changes you suggested and it is working now. thank you ever so much.
    as you say, it would be nice if the theme makers added opt out to allow us to use third party options if we choose. thank you ??

    Plugin Author Sayontan Sinha

    (@sayontan)

    Great! Marking this “Resolved”

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘wordpress blog post’ is closed to new replies.