• Resolved tdrayson

    (@tdrayson)


    Hi, I’m trying to show / hide blocks based on custom fields that are attached to a user on the author archive. (The slug /author/{username})

    However I don’t see any settings or options that would allow for this. It wouldn’t be the current logged in user. Do you have any ideas if this is supported or is able to be supported.

    Also, do you have any documentation on being able to extend the plugin so I could add my own conditions?

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @tdrayson,

    If the custom fields are tied to user metadata, then you can use the Metadata visibility control. There is an option to choose user metadata.

    Extending Block Visibility is very possible. I wrote a demo plugin that does just that, which you can find here. If you think an enhancement would benefit the larger community, I also encourage you to submit a pull request in the GitHub repository for the Block Visibility itself. The plugin is now listed as a “Community Plugin”. Contributions are more than welcome!

    Best,
    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘Author Archive Conditions’ is closed to new replies.