Try this
<?php if ($args['avatar_size'] != 0) echo get_avatar($comment,'70',$default, $alt,array('class'=>array('media-object','thumbnail'))); ?>
Related Posts:
- How to store widget fields data as an array?
- get_option function
- How to set the default value of a option in a theme?
- How to use bloginfo( ‘template_directory’ ) in array
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- How can I make my options in an array and store theme in WP options one DB row?
- Change the “Default Avatar” admin option via functions.php
- get_avatar() is not working in my custom theme
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- Extracting Distance from FacetWP Proximity Function to Display in WordPress Template
- WordPress API Menu/Submenu Order
- What WP folder can I use to write files to?
- Form Submitting Error with get_template_part()
- Get 10 posts from a WP_Query. If less than 10, get the remainder from elsewhere
- Can’t get staging site to display same way as live site. Completely stumped
- How to add default images for custom backgrounds?
- How to call the_excerpt() with tags or the_content() as an excerpt?
- Display a different theme for not logged-in users
- how to test a theme upgrade
- Best practice (forward compatibility) for theme options
- How to set path with WP_Filesystem and ftp base / chroot
- How to add paging to query
- what’s meaning of it when submit a theme?
- How to Modify a Widgets UL and/or LI Classes
- How to remove menus section from WordPress theme customizer
- Returning Variables back into a template
- Getting Permalink within the loop
- Allow users to add custom functions to wordpress theme
- How to add custom template tag in wordpress theme?
- Doubled titles when using All in One SEO with custom template
- What page should I use for a contact form?
- Get attachments by user
- Appending a value to metabox before and after saving
- Modify the Additional CSS section (adding a disclaimer)
- I made a my own theme to WordPress and Admin Menu missing from frontend
- What program can I use to preview my wordpress site?
- I want edit_post_link() to open in a new window/tab (target=”_blank”)
- How to remove a file included in parent theme with locate_template() via child theme?
- Can’t override template file in child theme
- wp_nav_menu add something before closing container and after last list item
- Simple way to get two language WP site
- How can i initialize a widgetized sidebar (with widgets)
- How do you force a sidebar widget to have a container div around all child widgets?
- Add widgets to available widgets section without changing the theme?
- jQuery not available to other scripts
- Override template file i subfolders
- Does the switch_theme action run when you’re upgrading a theme?
- StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]
- How to jump to newly posted comment anchor after submit?
- WordPress Filtering Custom Post Type by Metadata and Search Heirachy
- How can I override a require() used in functions.php of parent theme to my child theme
- Best way to develop a new theme on a live site, with new content? [closed]
- Tag Page Not Listing All Posts With Tag
- Can I use WooCommerce in a headless CMS setup?
- How to transfer one domain to another domain without losing theme options (customizer)?
- Do I need to include a textdomain if my theme doesn’t support translation?
- Pagination not working on page template
- How can I prevent posts with no title showing up in my query?
- adding class to excerpt
- How can I wrap all blog posts image with
- Redux Setting on custom created admin page
- Avada Child Theme Development
- WordPress Load Only Page Text
- Using the media library for theme customization
- Never actually adding the action? Or do I have to call the action?
- Tiny MCE custom styles, and preview in the backend
- How can I remove image taxonomy pages from my theme and from Google?
- How can I get dynamic content on my static home page
- WordPress 6.x / PHP 8.x deprecated warnings in development environment
- WordPress custom menu can’t show 3. level submenu
- Social-Link block not loading html on page with custom theme
- Creating a Single Page Theme correctly
- Custom post type query with pagination doesn’t work
- Fatal error: Class WP_Customize_Image_Control not found
- Edit Product Archive design for Woo theme
- How do I remove header/page-title image in farvis theme? [closed]
- Which theme PHP file should be edited in order to change Posts appearance
- Necessary css classes to be included in theme stylesheet
- How to link post image to post link?
- How to hide blog by id wordpress multisite listing
- Get chronological page order
- Query wp_postmeta into an array based on post_id
- Including some variables in function.php and echo them is several place of theme is not working
- How to override wordpress native options with theme options
- Problem with multiple menus in theme
- How to create multiple sidebar areas with a forloop and register_sidebars?
- How to convert that page to a wordpress template? [closed]
- Saving Permalinks Results in 403 MAMP (Windows)
- Add rel to all images in a post
- WordPress theme Modifications not showing up on live server
- Bootstrap isn’t called into my WordPress theme
- Adding a new layout for genesis
- Which function(s) to build a paged HTML table
- white spaces on the all sides [closed]
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]