WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My wordpress feeds post item looks following:

   <title>Taste Trail – Lima and Cusco’s Best Eats</title>
   <pubDate>Tue, 16 Apr 2013 03:24:37 +0000</pubDate>
   <guid isPermaLink="false">http://example.com/?p=717</guid>

I want to change the URL of the post to something like


Please help me with how to do this!


share|improve this question
up vote 1 down vote accepted

You could filter 'the_permalink_rss':

add_filter( 'the_permalink_rss', 'wpse_96602_change_feed_item_url' );

function wpse_96602_change_feed_item_url( $url )
    $parts = parse_url( $url );

    return $parts['scheme'] . '://' . $parts['host'] . '/#!view' . $parts['path'];

But … I strongly recommend not to do that. Hash-bangs will break your web site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.