Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8578179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:19:39+00:00 2026-06-11T20:19:39+00:00

I found a topic about how to add categories to a wordpress rss feed,

  • 0

I found a topic about how to add categories to a wordpress rss feed, but how is it possible to add a custom field to a wordpress RSS feed titel?

      function rssTitle_add_categories($title) {
    $category_array = array_map(create_function('$category', 'return $category->name;'), get_the_category());
    $categories = join(', ', $category_array);
    $title = $title . ' - '.$categories.' - ';
    return $title;
}
add_filter('the_title_rss', 'rssTitle_add_categories');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:19:40+00:00Added an answer on June 11, 2026 at 8:19 pm

    You just have to get your custom field using get_post_meta (or plugin API if you are using a custom fields plugin) and add it to your title, for example :

    function rssTitle_add_categories($title) {
        global $wp_query;
    
        $category_array = array_map(create_function('$category', 'return $category->name;'), get_the_category());
        $categories = join(', ', $category_array);
    
        $field = get_post_meta($wp_query->post->ID, 'your_field_name', true);
    
        $title = $title.' - '.$categories.' - '.$field;
        return $title;
    }
    add_filter('the_title_rss', 'rssTitle_add_categories');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found some questions here about this topic, but none of the solutions solve
I found a bunch of other questions about this topic, but for some reason
I found here a topic about an MySQL IF, ELSE query,i adapted it but
I have found couple of similar topic about this but none of them solve
I have read a few bits and bobs online about this topic but found
I found several libraries and questions about that topic, but till now I couldn't
I've read every post about the topic but I don't think I've found a
I found a suggestion on a Stack Overflow topic about problems beginners should do
I found a topic on MSDN that talks that yes, this is possible. I
I've found this topic for PostData using http. but it doesn't work. What's wrong?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.