Notifications
Clear all

[Closed] Shortcode in admin note

4 Posts
3 Users
1 Reactions
327 Views
Posts: 8
Topic starter
(@jajimenez)
Active Member
Joined: 1 year ago

I have created a custom shortcode to display a message depending on whether the user is logged in or not logged in.

I want to add it to the admin notes because that is the area where I would like the notification to appear.

I have tried entering the shortcode but it does not recognize it as a shortcode. I have tried other shortcodes in case the error was in the custom function but it still doesn't work.

Any solution to make it work?

I can't find any other solution to add the message in that area.

Thank you.

3 Replies
Tutrix
Posts: 1415
(@tutrix)
Noble Member
Joined: 4 years ago

Hi@jajimenez

Posted by: @robert

The admin note, is only designed for text and HTML. You can't use shortcodes and JS codes. There is no an easy way to do that.

but you can customize the forum.php

read this topic > Login name on Forum Title line

i use this also 😉 

Posts: 8
Topic starter
(@jajimenez)
Active Member
Joined: 1 year ago

Thanks!, with that information I think I can solve it.

dimalifragis
Posts: 2615
(@dimalifragis)
Famed Member
Joined: 4 years ago

@jajimenez A more complicated and advanced way, it to use Ad Inserter and instead of ad script, use a shortcode.