Support » Plugin: Media Library Assistant » Adding ‘Meta Description’ column in MLA list

  • Resolved 528491


    How would I go about in adding additional column when viewing list of media items in MLA, namely the ‘Meta Description’ column. This ‘Meta Description’ field comes from the SEO plugin I have on my website.

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


    Thanks for your question. The answer depends on where the SEO plugin stores the Meta Description values.

    You can use the Settings/Media Library Assistant Custom Fields tab to define a rule that adds a WordPress custom field to the Media/Assistant submenu table. You can also use the rule to create a custom field from a wide variety of data sources.

    If all else fails you can create a small custom plugin that takes advantage of the hooks built in to MLA to write some PHP code that accesses the Meta Description values and adds them as a column in the submenu table. Again, knowing how the data is stored is the first step towards a solution.

    If you can tell me which SEO plugin you are using and it is available in the Repository I can investigate further. I hope you understand I cannot purchase premium plugins just to support my own free plugin.

    Any further details you can provide will help me be more specific. Thanks for your interest in MLA.

    Thread Starter 528491


    Thank you kindly for such informational support and so fast, and giving me the right directions. I wouldn’t want to take away of your time unnecessary, so I will pursue this project further according to your directions, the picture is much clearer now. For the informational reasons, the plugin I use is All In One SEO, the basic free edition.

    Plugin Author David Lingren


    Thanks for your update and for posting the name of your SEO plugin. Thanks as well for your positive MLA review; much appreciated.

    I installed All in One SEO and did some analysis. AIOSEO adds a database table of its own, wp_aioseo_posts. In this table the title column contains the “Media Title” value and the description table holds the “Meta Description” value. The post_id column contains the ID value for the Media Library item(s).

    Both of the database values make use of AIOSEO “variables”, e.g., “#post_title #separator_sa #site_title”.

    You can write a small custom plugin to add the information to the Media/Assistant submenu table and to the Quick Edit and Bulk Edit areas as well. If you have some PHP skills you can probably adapt the “MLA ACF Checkbox Example” plugin or use it as a model for your work. Navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “ACF” in the text box and click “Search Plugins” to filter the table.

    You are looking for the “MLA ACF Checkbox Example” plugin. Find that plugin and hover over the title in the left-most column. You can install the plugin, download a copy or view the code using the rollover actions. To install it, click the “Install” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and activate the example plugin as you would any other plugin.

    I hope that gets you started on a solution for your application. If you need more help, post an update here and I will do what I can. Thanks again for the review and for your interest in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.