• Resolved ernstwg

    (@ernstwg)


    Hi David.

    Copyright is important for a little publishing community, particularly a German community something important.
    My idea is to make a prefix for the post_excerpt (caption) which looks like “image: <attachment_author_name>“.
    <attachment_author_name> means the full name of the person doing the upload of the image.
    My understanding of your documentation is that Field-level data sources -> post_author could do the job. The content template of the field looks like template:(image: [+post_author+])(( # [+iptc:2#005+])|( # [+parent_title+])).

    Unfortunately [+post_author+] shows the (correct) author_id but not the desired name of the author, fullname, display name, whatever…

    Can you give me any guidance? Thank you !!

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

    (@dglingren)

    Thanks for your question. There are no built-in data sources for author values, but one of the many MLA example plugins adds them. You may already have installed the “MLA Substitution Parameter Hooks Example” plugin to solve earlier topics such as your:

    Featured Image

    If not, follow the steps in that topic to install and activate the example plugin. Once that’s done you can use something like [+author:display_name+] to get the results you want. The author: prefix gives you access to all of the WP_User properties, such as:

    • ID
    • user_login
    • user_nicename
    • user_email
    • user_url
    • user_registered
    • user_status
    • display_name

    In addition, you can access any of the values in the “usermeta” database table, including:

    • user_first
    • user_last
    • user_bio
    • nickname
    • description

    I hope that gets you the results you seek. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the example plugin. Thanks for your continued interest in the plugin.

    Thread Starter ernstwg

    (@ernstwg)

    Thank you David.

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

The topic ‘Computed Copyright Information’ is closed to new replies.