the_content_rss()
is deprecated. You should be using the_content_feed()
, but that is a secondary problem. Both functions echo
content. What you want is the get_*
variant– get_the_content_feed()
.
That is a general rule, by the way, but not a 100% consistent one. Many functions starting with the_
will output content immediately and there tends to be a get_
variant that will return a string (or other) for you to use.
Related Posts:
- Adding a second email address to a completed order in WooCommerce [closed]
- Possible to search by author name with default WordPress search function?
- Advantages and disadvantages of using automatic-feed-links
- Influence of WordPress functions on site speed
- Is it possible to override this function/class in a child theme?
- When new user register then add new user role
- Change meta tags programatically
- Convert hyphen to underscore in permalinks
- Remove bulk actions based on user role or capabilities
- Set first oembed in post to a global variable or function
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Use a function to update post meta based on other post meta
- wp_delete_attachment
- Adding body class when post contains a specific shortcode
- Displaying Widgets
- WordPress registration and contact form 7 [closed]
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Woocommerce checkout field maxlength, make input number field only (postcode)
- My simple custom shortcode is not longer working (possibly due to upgrade to WordPress 4.4 ?)
- PHP files included in functions.php don’t seem to work
- Removing the main link to Jetpack from the menu
- Register and enqueue style.css custom theme
- How To Remove Duplicate Menu Locations
- Show top commenters without using a plugin
- WordPress shortcode attributes for database SELECT?
- How to get membership level for specific user email
- Post thumbnail not showing in WP admin area for custom post type
- Backstretch.js and thumbnail sizes to reduce loading time
- Child theme within a child theme?
- Fatal error: Cannot redeclare when switching themes
- How to load jQuery in the footer – nothing works for me
- Featured Image Thumbnail Creation
- How do display most popular post from a year earlier to the day?
- Updating Media Published Date When Parent Post Is Modified in WordPress
- WP Ajax Function Always Returning undefined
- How can I grab the video id of youtube?
- Specify number of posts for sub-category page
- Creating A New Admin Menu Tab For Theme Options
- Passing variable as add_shortcode argument
- Run wp_kses_decode_entities on atom feed?
- comments_popup_link without echo?
- Can’t filter wp_get_attachment_link
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Function extending with if query in functions.php
- add_action wp_enqueue_script priority level only works for admins
- Turn get_posts as string into an array for use in theme admin options
- current_user_can comma list vs OR (||) list
- Include the post type before the title of search results
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- What is wrong with code added to functions.php to selectively show styles based on login state
- Writing a function to detect an event
- Problem with calling custom function in a foreach loop
- Changing where my author box is printed
- Different methods of adding menu support to custom theme
- Function to insert missing image size attributes into img tags
- Redirects based on a JSON file
- Get Attachment Category Name
- Sort and display pages with specific custom field (not tag)
- functions.php return custom text
- Creating multiple category drop down
- Disable trim in WordPress
- How i can get the URL?
- WordPress Categories: Function using custom SQL to return array of specific category IDs
- WordPress login set cookie that survive browser exit (wp_signon function)
- Show metadata in users.php – wordpress
- Add version # to wp_register_style function
- How to remove font awesome from loading in wp theme
- Change category display name function
- Customizing the wp_video_shortcode output with add_filter
- a SET of wordpress native galleries with title and text?
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Writing a function for WP Cron to run a SQL command daily
- Custom Function.PHP Code Not Working on One Site
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- Only display table in the_content() in canonical page
- Button click counter for login user
- Function/way to redirect to specific page whenever a specific text occurs on homepage?
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- Get child-pages slugs of current page into js-file
- Frontend Feature image upload not work
- Display page number on custom page title function
- different body classes for each category
- How to override or change function in form.php in a plugin
- Some code is added automatically to my site’s header – what is it?
- Automatic add space if user enters number(any digit)
- To make some div display for a longer time
- Adding stick post button to edit post page
- A blank page is shown after I add a Function
- Override default password nag in WordPress
- Cant use php fopen() function in functions.php
- If no input don’t display?
- Additional Sidebar
- Retrieve current post’s tags
- How to remove the automated code posted in functions.php?
- Remove snippets of JS from core
- 500 error after upgrading from 5.0 to 5.4 and adding empty functions.php
- get_post_class() not working well
- Customizer cuistom CSS Priority ordre Issue
- WPDB query suddenly not working