• I’m newbie..I have an array of 10 strings separated with comma “,”I need to make that arrays to be page title at once.

    $k_menu=explode(",",$row['keyword']);
    		foreach($k_menu as $key_menu){
    		 for($counter=1;$counter<=200;$counter++){
    		$posts[$counter]->page_title = __($key_menu);
            $posts[$counter]->post_content = $key_menu[$counter];
    		 }
    	}}

The topic ‘foreach page title’ is closed to new replies.