• Resolved nikola123

    (@nikola123)


    Hi,

    I have problem adding filter only on single posts.

    if(!is_home()){
    	add_filter('the_content', 'my_function');	
    
    }

    or this

    if(!is_single()){
    	add_filter('the_content', 'my_function');	
    
    }

    Doesn’t work.

  • The topic ‘Add filter only on single posts, not on home. Please help’ is closed to new replies.