Search Results
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 |
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(){ …
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) { …