BracketSpace / Notification

WordPress Notification plugin
https://docs.bracketspace.com/notification/
GNU General Public License v3.0
170 stars 30 forks source link

PostTermPermalink merge tag #209

Open jnorell opened 4 years ago

jnorell commented 4 years ago

In a new post notification (for custom post type) I'd like to include a link to a taxonomy term archive page, and am not finding any way to create such a link currently. Eg. if post type 'books' has a taxonomy 'genre', I'd like a merge tag to fill in {books_genre_link} (or maybe {books_genre_term_link}) with a link to the corresponding term archive (return only the first term link if more than one term is allowed/set).

jakubmikita commented 4 years ago

return only the first term link if more than one term is allowed/set

This is the main issue here. We cannot limit the merge tag output to only the first item. A list of links, on the other hand, won't be usable.

We are missing some kind of a multi-value merge tag support, loops, etc.

mircobabini commented 3 years ago

We are missing some kind of a multi-value merge tag support, loops, etc.

Maybe something similar to angular formatters?

jakubmikita commented 3 years ago

@mircobabini you mean the pipes?

mircobabini commented 3 years ago

Yeah, the pipes. Maybe providing some standard pipes and making everyone able to map custom pipes, we are done.

jakubmikita commented 3 years ago

This is exactly what I figured lately! It's even implemented in the Custom Fields add-on.

I planned to move this to the base plugin and make the Custom Fields add-on extend the function.