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
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Publish author posts only with editor approval?
- How to enable edit button in the theme’s customize UI?
- Delete Custom Dashboard Widgets
- How to pass JavaScript variable to PHP in wordpress widget?
- How To Add an Extra Field in All WordPress Available Widgets?
- 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?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- How can I retrieve data within my widget
- How to unregister a widget from a child theme
- How to exclude a widget from page 1 of a paginated post
- How to get popular post from across a network?
- Are there plugins that interfere with the admin part of Rss widget?
- how can i limit the number of instances for my widget
- Dashboard Widget Form
- How can I reuse the WordPress search form for a custom plugin / widget?
- Passing $this->get_field_name() to javascript
- Is there plugin to show recent posts from one website in the widget area of another?
- Can I use a form in a dashboard 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?)?
- How to check if you are on widget.php page?
- I have no idea “How change font for elements in widget?”
- Not getting author rank when using return
- Theme’s default styles are overriding my plugin’s custom CSS
- Adding widgets to header and footer from plugin
- Rotate Widgets or Content Blocks every x sec/min
- Do widget options need to be escaped widget()?
- Ajax contact form widget plugin data not insert in database
- How to remove traces from widget during uninstallation
- How to set add question capability for author role in wp pro quiz plugin
- Which widget to use for display category post with view more? [closed]
- WordPress Widget Not Saving Data
- In the archive widget, how do I sort in between two years?
- Automatically Assign Author to Category [closed]
- Wysiwyg editor errors
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Change get_current_user_id code to the author’s profile
- Char limit on custom blog-post form? [closed]
- How to add Wrapper Div/container element around WordPress Widget Content
- Disabling plugin but wpenqueue is not available
- Related posts widget or plugin needed
- Can I put in Github the code of a abandoned plugin I want to fork?
- Show author on every sub-page
- Problem since update 3.5 [duplicate]
- How to disable a widget when dependent plugin is inactive?
- How can I delete a wordpress widget instance?
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Woocommerce: limit user to see only the products he created
- OceanWP settings are missing from Add New Post [closed]
- how to add custom info on author page? plugin, child theme?
- Individual Comment Notification Setting For Post Author
- How to display a widget on a page with no theme?
- Widget where it can make changes to the container
- how can authors to define custom pages?
- Widget content turns up before title
- Modify pages widget and make a plugin?
- wp_footer hook running twice
- Is there any plugin to show number of clicks on the link?
- How to get authors who have added the post in the specific custom post type
- Display Author name PHP (Selfmade Plug-IN)
- Change language in SiteOrigin Widgets
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Using foreach loop for `$instance` of form and update array widget iteration
- One time call to external API in widget
- Is there a way to display multiple authors on a post?
- Changing author slug for a custom role without using plugin
- Remove dashboard links from wordpress
- Registered sidebar area is not shown from plugin.
- Custom content per post in widget
- Using slightly modified widget
- How to make wp multisite subdomain exist search
- Custom Widget not Available after Plugin Installation
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Use of apply_filter in plugin/widget class
- How to show author’s avatar in the post meta data with plugin `user-avatar`
- Unfortunately removed myself as plugin committer
- Widget redirecting to home page
- Plugin won’t activate, fatal error (widget class not found)
- WordPress plugin not eching popular posts
- How can i do custom author list?
- Check if post was modified by editor different than post author
- Trying to output a “Most visited blogs” list in wordpress multisite
- How to use template field in the Event Organiser plugin widget
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- Issue with customizer and widget page
- Footer option is missing in Customiser
- Why my widget is not visible in the WordPress theme Twenty Twenty-Three