I lately had this code produced for my Wordpress site. It causes it to be to ensure that non listed customers can't begin to see the latest posts available as much as 15 days unless of course they register. It really works, however i require it to simply restrict one specific category during my Wordpress installation and not every one of them (i.e. I want it to limit this category although not my blogs).

Can anybody let me know where and what's required to get this to code function by doing this? Thanks.

    add_filter('posts_where', '_custom_s2member_archive_filter');
function _custom_s2member_archive_filter($where) /* Require membership to view latest content. */
    {
        if(!is_admin() && (is_archive() || is_home()) && !current_user_can("access_s2member_level1"))
            {
                $where .= " AND post_date <= '".date ("Y-m-d", strtotime ("-15 days"))."'"; /* Back-date freeloaders. */
            }
        return $where;
    }
add_filter('template_redirect', '_custom_s2member_single_filter');
function _custom_s2member_single_filter() /* Require membership to view latest content. */
    {
        global $post; /* Need this for date comparison. */
        if(!is_admin() && is_single() && !current_user_can("access_s2member_level1"))
            {
                if(strtotime($post->post_date) > strtotime("-15 days"))
                    {
                        header("Location: ".S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                        exit();
                    }
            }
    }

Begin by determining exactly what the ID from the category under consideration is. You will get that by visiting Posts -> Groups within the Admin sidebar, then click the category you are attempting to restrict. The URL for that new page you're result in will finish in tag_ID=[some number]. That [some number] may be the category ID.

Then use Wordpress's conditional tags to create an if statement like
if(is_category('[some number]'))
{
Put the code you already have for restricting the posts here
}

Granted, I haven't examined this myself, but tell me the way it calculates!