• Resolved bvstek

    (@bvstek)


    Hi Everyone, is there a way to use MLA shortcodes on the attachment page to get a link to previous/next image in a photonic gallery? I’d appreciate an example.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question, which has three parts:

    1. How do I use [mla_gallery] to display a Photonic gallery?
    2. How do I add an [mla_gallery] shortcode to an item’s “attachment page”?
    3. How do I add previous/next links to a Photonic gallery?

    You can find the answer to the first question in the “Support for the “Photonic Gallery for Flickr, Picasa, SmugMug, 500px and Instagram” Plugin ” and ”
    Support for Other Gallery-generating Shortcodes” sections of the Settings/Media Library Assistant Documentation tab. Have you found those resources? If so, do you have any problems or questions about the information they provide? The Photonic slideshow formats provide previous/next navigation through the items passed to the plugin from MLA.

    The answer to the second question depends on your site’s theme. The “attachment page” is generated by one or more of the PHP template files your theme contains, as outlined in the Template Hierarchy section of the WordPress Codex. To add MLA shortcodes to the attachment page you modify a template’s code and use the WordPress do_shortcode function to execute the shortcode. Does that make sense? Do you need more specific guidance?

    The answer to your third question can be more complex, starting with the definition of “previous” and “next”. The WordPress core definition relies on the traditional (now quaint) notion of “attaching” items to a post or page, establishing a parent/child relationship. Beginning with WordPress 3.5 or so, this notion faded from prominence and was supplanted by the idea of picking a list of items and inserting a “Gallery” composed of the items in the list.

    MLA and many other plugins allow you to use taxonomies and term assignments to compose “Gallery” relationships. In these solutions, previous and next mean “within the items sharing a common term assignment”. This is a very popular MLA application.

    The most common MLA solution is to define a post or page that includes [mla_gallery] shortcodes for gallery display with pagination controls (e.g., previous/next), and optionally some sort of UI that allows a user to select the term(s) by which the gallery is filtered. You can find many examples in the Settings/Media Library Assistant Documentation tab. Look for these sections:

    • Tag Cloud and Gallery
    • Search Form and Gallery
    • Tag Cloud Pagination Example
    • MLA Term List Examples

    Do any of the above apply to your application? If not, can you give me additional details of what you have in mind?

    The examples in the above list do not combine MLA with Photonic, but you should be able to adapt them without too much difficulty. I hope they get you started on a solution that meets your needs. I will leave this topic unresolved for now in case I have not understood your question or you have problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    It has been a month since my last post in this topic. I hope you were able to find a solution that works in your application.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Integration with Photonic’ is closed to new replies.