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

    (@dglingren)

    Good to hear form you, as always.

    If I understand your question, I believe you will find the answer in the “Gallery Display Content” section of the Settings/Media Library Assistant Documentation tab. There you will find the mla_link_href parameter:

    The “mla_link_href” parameter is a great way to change the destination your gallery item links to or add arguments to the link for later processing. For example, to make a gallery item link back to the page/post it is attached to, you can code: mla_link_href='{+site_url+}/?page_id={+parent+}'. You can also add arguments to the link, e.g., mla_link_href='{+link_url+}?myarg1=myvalue1&amp;myarg2=myvalue2'. Note the use of the HTML entity name “&amp;” to put an ampersand in the value; the WordPress “visual” post editor will replace “&”, “<” and “>” with “&amp;”, “&lt;” and “&gt;” whether you like it not. The only markup parameter modified by this parameter is “link”. Other markup parameters such as “pagelink”, “filelink” and “link_url” are not modified.

    If you want to hard-code a link to a specific page, you can try something like mla_link_href='{+site_url+}/my-specific-page/'. If you’re linking to a WordPress post or page, don’t forget the trailing slash.

    I am marking this topic resolved; if the above suggestions aren’t what you need, give me more information about your objective and I can be more specifically helpful. Thanks for the question and your continued interest in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery link to specific page’ is closed to new replies.