WordPress.org

Ready to get started?Download WordPress

Forums

Conditional Tags inside a wordpress plugin (2 posts)

  1. golbez
    Member
    Posted 6 years ago #

    function wp_no_content($text){
    	global $wp_query;
    	if(is_front_page()){
    		$text ="";
    		return $text;
    	}
    }
    add_filter('the_content','wp_no_content');

    To be very brief: Why this doesn't work?

  2. golbez
    Member
    Posted 6 years ago #

    no one?

Topic Closed

This topic has been closed to new replies.

About this Topic