Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 176620

BB-Code-like mechanism by which strings enclosed in square brackets can serve as shorthand for longer and more complicated strings. These strings are processed by callback handlers, usually on page load, which replace the bracket enclosed string with the output from the callback handler.

0 votes
2 answers
44 views

Shortcode to show author role on the author archive page

It's just returning nothing: // Shortcode pour récupérer le rôle de l'adhérent dans la page de recherche add_shortcode('adherent_role', 'author_name_shortcode', true); function author_name_shortcode(){ …
Guillaume Sorel's user avatar
0 votes

Shortcode to show author role on the author archive page

I'm posting what worked for me with the ability to have custom label as the readable name of the selected WP roles: // Shortcode pour récupérer le rôle de l'utilisateur dans la page d'archive des utilisateurs … empty($filtered_roles)) { $output = ''; // Initialisation de la sortie du shortcode // Boucle pour obtenir tous les rôles autorisés foreach ($filtered_roles as $role) { …
Guillaume Sorel's user avatar