It’s a method for completely different thing.
RSS 2.0, Atom 1.0, and feeds with iTunes RSS tags are allowed to have a “feed logo”, which is a single image to represent the feed. This method returns the notated URL for that image/logo file.
get_image_url()
And it complains about undefined because it is method of feed object and you are iterating through feed item objects.
Overall it depends on how your feed works with images. If they are simply included in content – mine them from there (with regex or something simpler if not much text). If images are included in media enclosure try get_enclosures()
method.
Related Posts:
- How do I remove RSS feeds from themes?
- How do I modify the ‘more’ link in a feed
- Unwanted empty line at the beginning of document
- Link to RSS feed not clickable?
- Strip HTML tags on custom code from the_content
- RSS feed url showing page not found. How to solve it?
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Change admin bar to default:off
- How to add Color Picker in Theme Options for the following?
- Template for individual post designs
- Theme Review: post thumbnail, header image, content width
- How to determine if a category is empty?
- The seventh parameter passed to add_submenu_page()
- What would happen if the admin installs a plugin when the plugin is included in the theme?
- Pushing updates to your premium theme
- The best way to add stylesheets to WordPress
- WordPress custom post type page dysplay 404 error
- How wordpress handle upload images and how to use them in the code
- Change loop order via form or link (jquery, not URL)
- how to create theme based widget that can be drop in sider bar or footer
- CSS in child theme not overriding the parent theme [closed]
- Remove frameborder attribute from iframes
- How to test for MU via functions.php?
- List categories and exclude child categories
- Am I supposed to create a child theme for every theme I use?
- WordPress as a data intensive web app
- How to determine which custom header image is being shown
- Disable wp_enqueue_style for theme on wp-admin
- Override theme programmatically
- Custom URL parameters in template files
- How do I remove TinyMCE text format
- can’t understand _e function well
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Change content layout based on menu hierarchy
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- Disabling automatic teasers
- Can “Recent Posts” widget be filtered by functions.php?
- attachment.php code or tutorial
- How to filter or remove the “title” attribute from category links
- Change “Thumbnail”, “Medium” and “Large” image sizes using functions.php?
- How to obtain a reference to the_excerpt() from custom loop
- Unable to check if image uploaded by wp_image_editor exists using file_exists function
- Force Balance Tags not working
- How to add styles set by user in the customizer
- Use second time navigation.js in underscores [closed]
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Add attachment for all images in post
- Displaying icon image for WordPress post formats, is there a cleaner way to do this?
- Static home page with “Blog” inside?
- Overrite parent functions using child functions
- How can I change the theme of different posts using a plugin?
- Include jQuery (or anything) inside Custom Options Panel’s tag
- WordPress 3 botches my Custom Meta Box values on Save
- Exclude custom post type from search conflict with get_posts
- How to seperate static phrases from template files in custom theme?
- Remove specific published page when theme deactivated
- Is there a WordPress boolean for “theme_customizer_active()”?
- Weirdness in jQuery supplied with WordPress
- How to code custom special page
- Get Post’s Excerpt Without the Wrapping tags and the Read More link
- Templates dropdown not appearing using _s theme (underscores)
- get_header action not working
- Navbar- disable “onClick” drop-down
- Injecting pre-defined text from custom page template to editor
- Remove h1 from 2015 theme
- Only the latest post shows up on post page?
- Update Specific Key Value in Complex `wp_options` object
- Using Foundation 5 off-canvas-menu with WordPress
- Can’t change theme name
- multiple queries to get posts from same category?
- Parent/Child pages
- Cart displayed above header
- enqueuing external and internal js and css in wordpress did not work with owl.js animate.css
- “The REST API did not process the context query parameter correctly.” Custom theme conflicting with Media Library
- Wrong activation/confirmation link in email
- How to enqueue scripts properly with ES6 webpack?
- Disabling wordpress added class
- Problem with pagination link (error 404)
- WordPress wp_get_current_user returning blank values until refresh
- PHP Script on a template page & dealing with URI’s
- Whether an tag is required in header?
- Theme is Enqueueing Everything in Footer
- home is not working in wordpreess
- Responsive Images with art direction
- Correct form of escaping and localization – functions.php breadcrumbs
- Local theme changes upload on server but theme changes not showing
- Activating theme in local MAMP installation results in HTTP ERROR 500
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- Understanding WordPress theme files and underscores
- New theme HTML5 Support for Search in WordPress 4.4
- Where to find this broken link in order to remove it
- Woocommerce Theme Reviews / Comments
- background_image support multiple image size?
- Moving Posts and Users Only to New Site
- What are these variables and where are they documented?
- Want to display page content after password prompt without page reload
- Why do some sites show themes/”themename” as the only theme?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?