Help with pluggable function
-
Im trying to display the county and flag in a list of users. I used the plugin Wp User Country by Adrian Lazariuc. It stores the information about country and displays the flag next to the name. Works fine in a custom authors page, but in the amrusers list only shows the id of the country. I tried to create a pluggable function with no luck, some help would be really appreciated. The field found in amrusers is wpusercountry_id.
<?php function ausers_format_wpusercountry_id(){ $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); /*functions from the plugin (wp User Country) to display country name and flag*/ <span class="country-name"><?php echo wpusercountry_img_display($curauth->ID);?><?php echo wpusercountry_name_display($curauth->ID);?></span> } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with pluggable function’ is closed to new replies.