• Resolved Philbeaux

    (@philbeaux)


    Dave, I hope you can help me with a little issue I’m having.
    On one site, I have just a simple gallery (well actually a couple galleries) that displays by attachment_category. Works just fine. I click on a thumbnail and you’re taken to the image’s attachment page. No problems.
    I take the exact same MLA shortcode, change only the name of the attachment_category – put it on another site and when clicked, instead of being taken to the attachment page, I’m taken to the images media file post instead. I’ve even assigned the attachment page through the default WordPress method and/or through the MLA Library and it still doesn’t go to the attachment page.
    Is there a setting in MLA that I’m overlooking?

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

    (@dglingren)

    Thanks for your question. I want to make sure I understand what you mean.

    You wrote “the image’s attachment page” and “image’s media file post“. I am not sure what the second phrase refers to; is it the URL of the file itself?

    The only [mla_gallery] parameter I can think of is link=file Vs link=permalink. Have you looked at that? You should also check the content of a custom markup template if you use one. There is no MLA option or setting I know of that would change the default.

    You should also check your WordPress Permalinks option settings to see if they are different.

    If the above suggestions are not helpful can you post a link to the affected pages and the source text of your shortcodes? Any additional information you can give me would be helpful; thanks.

    Thread Starter Philbeaux

    (@philbeaux)

    Well I guess the best way is to just show you what’s going on.

    This page : http://www.nosaintshistory.com/no_saints_galleries/new-orleans-saints-history-images/ is exactly what I want.
    The short code I use is:

    [mla_gallery posts_per_page=24 columns="4" attachment_category="pic" post_parent="all" orderby="date" order="desc" size="side-images" mla_caption="{+title+}"]
    
    [mla_gallery posts_per_page=24 mla_output="paginate_links,prev_next" attachment_category="pic"]

    You choose an image and you are taken to the assigned attachment page.

    Now this page….. http://www.pressdat.com/australia-stamp-gallery/
    used with this code:

    [mla_gallery posts_per_page=24 columns="4" attachment_category="australia" post_parent="all" orderby="date" order="desc" size="medium" mla_caption="{+title+}"]
    
    [mla_gallery posts_per_page=24 mla_output="paginate_links,prev_next" attachment_category="australia"]

    doesn’t go to the page the image is uploaded to (or assigned to for that matter). It goes to “post” of the image. I’m sure I’m not describing correctly but try it out and you’ll see what I mean.

    I’m sure my issue has nothing to do with MLA. It’s just I’ve actually posted this question at a couple of other places with no answers. I was just hoping you might know right off the bat what I’m doing wrong.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the shortcode text and especially the links to both sites.

    It looks to me like both [mla_gallery] shortcodes are linking to the “attachment page”/”media page” for the selected item. The differences you experience are entirely due to the Theme and its template hierarchy. You will have to work with the theme developer/vendor to understand which template is being invoked and how to populate the template with the information you want to display.

    I am marking this topic resolved simply because, as you stated, MLA is not involved and I don’t have access to the theme files to give you a more specific answer. I hope you are able to find a solution by working with the people responsible for the theme; good luck!

    Thread Starter Philbeaux

    (@philbeaux)

    Well thanks for the help David. Have a Good One!

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

The topic ‘Trouble With Image Attachment Pages’ is closed to new replies.