• Resolved majedian21

    (@majedian21)


    I am reading in your very thorough documentation that we can display a gallery by the author of the media:

    You can query by author’s id or the “user_nicename” value (not the “display_name” value). Multiple author ID values are allowed, but only one author name value can be entered.

    However, I am trying several variations of ‘post_author’, ‘media_author’, ‘user_nicename’, ‘author_id’, etc. but the page I am loading it on is not displaying the gallery – just empty.

    Examples that are not working:

    [mla_gallery post_author=2]
    [mla_gallery user_nicename='john']

    Thank you very much for the great plugin – it would be amazing if I knew how to get this correct.

    https://wordpress.org/plugins/media-library-assistant/

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

    (@dglingren)

    Thank you for your question, and for taking the time to include the examples of what you’ve already tried; very helpful.

    MLA follows the WP_query parameter for author and author_name, so your examples can be re-coded as:

    [mla_gallery author=2]
    [mla_gallery author_name='john']

    It is often helpful to go back to the WP_Query documentation, because the MLA documentation covers differences and extensions from the WordPress documentation.

    I am marking this topic resolved, but please update it if you have any problems or further questions about filtering your [mla_gallery] results by author. Thanks for your interest in the plugin.

    Thread Starter majedian21

    (@majedian21)

    David, your advise solved my issue. Thank you very much!

    If I may suggest that you put those examples in your documentation or clarify that Author section, as it was a bit unclear to me. However, I will go to the WP_Query documentation if I run into future MLA issues. Thanks again from a novice WordPress developer for the great plugin and support!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news. I have taken your suggestion and expanded the Documentation tab content for these parameters. I appreciate the feedback and the kind words.

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

The topic ‘Show gallery by author not working’ is closed to new replies.