solved using for loop instead of foreach:
function inl_users() {
if ( function_exists( 'get_coauthors' ) ) {
$coauthors = get_coauthors();
for ($i = 0; $i < count($coauthors); $i++){
$autArray[] = '<a href="https://wordpress.stackexchange.com/questions/404167/. get_author_posts_url( $coauthors[$i]->ID ) .">' . $coauthors[$i]->display_name . '</a>';
}
echo implode(", ", $autArray);
}
does anoyone know why?
Related Posts:
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Is there a way to input different rel=author and rel=publisher attributes for a WP blog w/ multiple authors?
- How can i list random author?
- Co-author plus: list of posts by authors in the sidebar
- how to show Author group not Author name
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Plugin upgrading: Widget settings
- Simple rich text editor in Text widget?
- Publish author posts only with editor approval?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- How to enable edit button in the theme’s customize UI?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Need to create a Theme demo site that features multiple themes
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- Adding a widget programmatically
- Delete Custom Dashboard Widgets
- Override dynamic_sidebar() in plugin?
- How to pass JavaScript variable to PHP in wordpress widget?
- Is dynamic forms/entries possible in Widget?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Set a User as Author of all ‘New Posts’ posted
- How To Add an Extra Field in All WordPress Available Widgets?
- How to place random widgets in the WordPress sidebar?
- Override Widget class in plugins with custom plugin
- Having Multiple authors for the same WordPress Plugin
- How to develop a community feature in the dashboard for multiauthor site
- Using the media uploader in a custom plugin
- Has anyone been able to get the aweber plugin to work
- How to create a widget or plugin to add custom content to my website?
- Pages with 2 Columns
- WordPress widget / plugin….fields not appearing in my widget
- Change destination author link
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Don’t send notification if author comments his own post plugin help?
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- Remove Widgets in Dashboard
- register child class in another plugin
- Themes VS Plugins [duplicate]
- Changing widget options via the functions.php when there are no hooks
- Conditional Display of Links in Widgets
- How can I retrieve data within my widget
- How to Get Admin Settings for a widget when using the_widget() with custom widget
- Edit/revise option for authors to suggest improvement to posts [closed]
- How to unregister a widget from a child theme
- WordPress multiple widget in single plugin
- Created Widget Not Showing up on Admin Panel
- How do I register a stylesheet inside a WordPress widget?
- Setting up widgets in wordpress with a unique ID for the after_title argument
- How to exclude a widget from page 1 of a paginated post
- Detect if a plugin was included in a certain page
- How to get popular post from across a network?
- Are there plugins that interfere with the admin part of Rss widget?
- Flickr plugin that will display photos from multiple group pools? [closed]
- how can i limit the number of instances for my widget
- Dashboard Widget Form
- I need some direction on how to have a sidebar based on meta rather than page
- How can I reuse the WordPress search form for a custom plugin / widget?
- Admin Dashboard with Custom Tab for Client
- Multisite Widget/Content
- Passing $this->get_field_name() to javascript
- Improving a Stackoverflow “inspired” badge system to display badges in author page
- Is there plugin to show recent posts from one website in the widget area of another?
- Get total number of comment of the posts written by an author
- Can I use a form in a dashboard widget?
- Ajax gives 400 error
- update_user_meta add value on the top on existing value
- WordPress author details plugin/widget
- Missing argument 3 for wp_register_sidebar_widget()
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- I wrote my plugin. How to display the result of the plugin’s function to sidebar (widget?)?
- WAMP to XAMPP WordPress transfer
- How can i list random post from multiple category?
- How to check if you are on widget.php page?
- I have no idea “How change font for elements in widget?”
- Widget for adding HTML markup to a page
- The plugin generated 3 characters of unexpected output during activation
- How to save additional user data as part of the registration process?
- Not getting author rank when using return
- Get post values of form created by widget in sidebar
- Theme’s default styles are overriding my plugin’s custom CSS
- Adding widgets to header and footer from plugin
- Archive – same title for the first two posts
- Rotate Widgets or Content Blocks every x sec/min
- Multi language site [closed]
- How to style the RSS wordpress?
- How can I disable widget from being visible on some pages?
- How to display more than one instance for a widget?
- Custom random quote widget breaks when used in multiple sidebars
- Hooking in to replace the Sidebar/Widget areas
- Do widget options need to be escaped widget()?
- Ajax contact form widget plugin data not insert in database
- Custom post type – no layout section of Document tab, and no author choice
- How to add media field to WP_Widget form function?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- How to hide CSS by default and show on button press
- Modifying Author Link to add Author Meta in URL
- How to remove traces from widget during uninstallation