The the_permalink_rss()
is echo
ing it’s content not return
ing it.
If we look at the source of this function:
https://developer.wordpress.org/reference/functions/the_permalink_rss/
We can just copy what it’s doing, as it’s a simple function.
$link = esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );
Related Posts:
- Remove tag on my RSS Feed
- RSS Feed has no styles in chrome – function to add one?
- Completely disable RSS feeds on WP 5.5.2 and show a 404 page instead of die();
- How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
- Display Password Protected external RSS in wordpress template
- custom rss templete
- Why is my page feed returning empty content?
- How to remove style attribute in WordPress RSS output?
- Access category within rss2_head hook?
- How do I place a function in a standalone page?
- Is posible to redirect a few URL?
- Completely Disable WordPress RSS Feeds
- Hide disclaimer from summary excerpts
- RSS feed including post updates
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- Functions.php code that only runs on localhost?
- hook a functions to change wp-config from functions.php
- Shared functions.php across multiple WordPress websites
- How to restrict actions and filters “properly” by conditions
- Extending auth_cookie_expiration based on user role
- Check if the user has explicitly set an excerpt
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- Slugs as breadcrumbs for Pages
- Add inline css to theme
- Shortcode with custom content attribute?
- Add a Post Thumbnail to an RSS Feed with custom size
- Automatically add author’s name to post_tag
- Print Dashboard menu name and link
- Enqueue styles after a plugin
- Develop function get_template_part in functions.php
- Change comment_reply_link URL
- Ajaxing function in widget class
- Super simple shortcode not working
- Using “Read More” link with custom excerpt
- what function can I use to automatically output og tags per page/post?
- Creating a child theme – functions.php code issue
- Run function when WordPress new multisite is created or ACF field is updated
- Setting Up Scheduled Tasks (For Scripts to Run)
- problem with has_post_thumpnail in foreach loop
- Frontend tag edit/submit form
- Find resources dynamically loading and change or add to the url
- Using shortcode content with nested shortcode
- Function wont fire after custom post type is updated
- Removing custom meta data
- how can I edit flexslider in woocommerce. [Urgent]
- Sections and tabs DRY – WordPress settings API
- When a user logs in, how can they view the website instead of the admin menu?
- Do we have to use ftp to recover from a bad functions.php edit?
- current_time(‘timestamp’) seems to be different from the real current time
- Has is_archived() for sites in a multisite changed with WP 4.7?
- Custom function causes a 503 error after a couple of hours
- How can I show my latest tweet in my wordpress blog?
- How to get_template_directory() properly on local environment
- register_activation_hook for multiple functions
- Undefined index: action with code-snippets to change register page
- Why There Is No “get content by ID” Function
- Missing argument for the function
- get_next_posts_link() returns no result despite available posts
- Randomizing wp_tag_cloud() in child theme
- Init action and refresh page after form action
- Replace plugin function with a custom function?
- Delay a function, any function!
- Combine two active_callbacks into one on theme customizer
- How to create shortcode with html and php content?
- wp_usermeta – Read from database, but save function broken
- remove/hide wp-editor
- Fill empty custom field with other custom field
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- How do I find the code executed when wp_head() is called?
- Problems with functions.php! Error! [closed]
- Output comment_author in array
- Problem with shortcode inside a shortcode
- Need help making a short code work
- WordPress functions.php conditional include another functions file
- reWrite wp-content url to point on my cdn
- sort title descending with title with number
- Add #primary at the end of navlink permalinks on single posts
- Is there anyway to force is_singular() to be true when not loading template?
- Postback redirect through add_action is not triggered
- How to add class dynamically from templates
- How to change form action of wp-login page with a function
- How to make an If Else on Excerpt Filter
- Translation Function missing text-domain [closed]
- get_comments not working properly after WordPress v4.4 update
- Retrieve a custom form field modified by a filter
- Custom taxonomy not refreshing page on add
- Pagination in Search result
- Custom field not updating via functions upon publishing
- disable WP_error: authentication_failed
- Create input select image URL?
- Including one page with WordPress functions into another
- Dynamically Generating User Meta Field
- Unhook the comment form in Buddypress
- Changing functions.php and .htaccess files
- Shortcode Variations?
- Code in functions.php appearing on front-end and dashboard [closed]
- Sessions in word press [duplicate]
- “woocommerce_output_related_products” not working
- Problem with removing characters “<” – WpAllImport