• Resolved petehobden

    (@petehobden)


    For example if I have a page with slug = smallcanal, can I use short code to display one image with filename smallcanal.jpg?

    That would enable me to create a page and then duplicate it, change the slug and so on to to have separate pages for each image.
    I am just discovering the scope of the plugin. It’s almost a programming language in it’s own right!
    I will continue to investigate…

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

    (@dglingren)

    Thanks for the positive MLA feedback, and for your question.

    You can use one of the “Gallery-specific Substitution Parameters” to reference the slug, and the “Keyword(s) Search” parameters to retrieve the corresponding image. Here is a shortcode working well on my system:

    [mla_gallery s="{+page_name+}" mla_search_fields=file]

    You can find more information in those sections of the Settings/Media Library Assistant Documentation tab.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the above solution. Thanks for your interest in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Create a page with an image based on page slug’ is closed to new replies.