WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Filter category from Feed (6 posts)

  1. utnalove
    Member
    Posted 1 year ago #

    Does anybody know whether the following code still works well on 3.4.1 and is not deprecated?

    function fix_feed_link($args) {
    	return $args.'?cat=-55'; // add any valid feed args
    }
    add_filter('post_comments_feed_link', 'fix_feed_link',10,1);

    What does ,10,1 stands for? What does this code actually do?

  2. David Choi
    Member
    Posted 1 year ago #

  3. utnalove
    Member
    Posted 1 year ago #

    Thanks, but this plugin is pretty old. What's more I'd like to edit my current theme instead of using a plugin... of course, if there is a good up-to-date plugin, I'll go for it.

  4. David Choi
    Member
    Posted 1 year ago #

    It doesn't matter if it's old in this case, because if you scroll down on that page, 4 people already confirmed that it works.

    BTW, WordPress itself uses the old codes and coding practices, so it won't disrupt the platform, so I don't see any issue with it.

  5. utnalove
    Member
    Posted 1 year ago #

    Ok thanks. i'll use that :)

  6. David Choi
    Member
    Posted 1 year ago #

    Good luck using the plugin! Have a nice day!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags