/** * Nyasa Times category archive H1 cleanup. * Removes "Category:" / "Category archives:" style headings * and replaces key category headings with SEO-friendly names. */ add_filter( 'get_the_archive_title', function( $title ) { if ( ! is_category() ) { return $title; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return $title; } $titles = array( 'news' => 'Latest Malawi News', 'national' => 'Malawi National News', 'politics' => 'Malawi Politics News', 'business' => 'Malawi Business & Economy News', 'sports' => 'Malawi Sports News', 'education' => 'Malawi Education News', 'health' => 'Malawi Health News', 'entertainment' => 'Malawi Entertainment News', 'columns' => 'Malawi Opinion & Analysis', 'religious-news' => 'Malawi Religion & Faith News', 'religion' => 'Malawi Religion & Faith News', ); if ( isset( $titles[ $term->slug ] ) ) { return $titles[ $term->slug ]; } return single_cat_title( '', false ); }, 99 ); /** * Remove WordPress archive prefixes. */ add_filter( 'get_the_archive_title_prefix', '__return_empty_string' ); /** * Nyasa Times AIOSEO category title overrides. */ add_filter( 'aioseo_title', function( $title ) { if ( ! is_category() ) { return $title; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return $title; } $seo_titles = array( 'news' => 'Latest Malawi News | Breaking Updates & Public Interest Stories | Nyasa Times', 'national' => 'Malawi National News | Latest Local & Public Affairs | Nyasa Times', 'politics' => 'Malawi Politics News | Government, Parliament & Elections | Nyasa Times', 'business' => 'Malawi Business News | Economy, Banking, Trade & Jobs | Nyasa Times', 'sports' => 'Malawi Sports News | Football, Netball & National Teams | Nyasa Times', 'education' => 'Malawi Education News | Schools, Universities & Exams | Nyasa Times', 'health' => 'Malawi Health News | Hospitals, Public Health & Medicine | Nyasa Times', 'entertainment' => 'Malawi Entertainment News | Music, Culture & Events | Nyasa Times', 'columns' => 'Malawi Opinion & Analysis | Columns & Commentary | Nyasa Times', 'religious-news' => 'Malawi Religion & Faith News | Churches & Community | Nyasa Times', 'religion' => 'Malawi Religion & Faith News | Churches & Community | Nyasa Times', ); if ( isset( $seo_titles[ $term->slug ] ) ) { return $seo_titles[ $term->slug ]; } return $title; }, 99 ); /** * Nyasa Times category meta descriptions for AIOSEO. */ add_filter( 'aioseo_description', function( $description ) { if ( ! is_category() ) { return $description; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return $description; } $descriptions = array( 'news' => 'Latest Malawi news, breaking updates, public-interest stories, community developments and national reports from Nyasa Times.', 'national' => 'Read Malawi national news, public affairs, local updates, government services and community stories from Nyasa Times.', 'politics' => 'Latest Malawi politics news, elections, Parliament, government decisions, party updates, policy debate and analysis from Nyasa Times.', 'business' => 'Read Malawi business news, economy, banking, trade, investment, energy, agriculture, jobs and market updates from Nyasa Times.', 'sports' => 'Latest Malawi sports news, football, netball, athletics, clubs, national teams and Malawian athletes at home and abroad.', 'education' => 'Malawi education news on schools, universities, exams, scholarships, teachers, students, policy updates and learning developments.', 'health' => 'Malawi health news on hospitals, public health, disease outbreaks, medicine, maternal health, children’s health and health policy.', 'entertainment' => 'Malawi entertainment news on music, culture, film, fashion, celebrities, festivals, events and creative industry updates.', 'columns' => 'Read Malawi opinion, columns, editorials and analysis on politics, governance, business, society, leadership and development.', 'religious-news' => 'Malawi religious news, church updates, faith events, Christian community stories, religious leaders and social impact coverage.', 'religion' => 'Malawi religious news, church updates, faith events, Christian community stories, religious leaders and social impact coverage.', ); if ( isset( $descriptions[ $term->slug ] ) ) { return $descriptions[ $term->slug ]; } return $description; }, 99 ); /** * Display category description before the article list * when the theme does not output it. */ add_action( 'loop_start', function( $query ) { if ( ! is_category() || ! $query->is_main_query() || is_admin() ) { return; } static $shown = false; if ( $shown ) { return; } $shown = true; $description = category_description(); if ( empty( trim( wp_strip_all_tags( $description ) ) ) ) { return; } echo '
'; echo wp_kses_post( $description ); echo '
'; } );/** * NYASA TIMES SEO + ARCHIVE FIX * */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * ------------------------------------------------------- * 1. CATEGORY CONFIGURATION * ------------------------------------------------------- */ function nyasa_category_seo_data() { return array( 'news' => array( 'h1' => 'Latest Malawi News', 'title' => 'Latest Malawi News | Breaking Updates & Public Interest Stories | Nyasa Times', 'desc' => 'Latest Malawi news, breaking updates, public-interest stories, community developments and national reports from Nyasa Times.', ), 'national' => array( 'h1' => 'Malawi National News', 'title' => 'Malawi National News | Latest Local & Public Affairs | Nyasa Times', 'desc' => 'Read Malawi national news, public affairs, local updates, government services and community stories from Nyasa Times.', ), 'politics' => array( 'h1' => 'Malawi Politics News', 'title' => 'Malawi Politics News | Government, Parliament & Elections | Nyasa Times', 'desc' => 'Latest Malawi politics news, elections, Parliament, government decisions, party updates, policy debate and analysis from Nyasa Times.', ), 'business' => array( 'h1' => 'Malawi Business & Economy News', 'title' => 'Malawi Business News | Economy, Banking & Markets | Nyasa Times', 'desc' => 'Read Malawi business news, economy, banking, trade, investment, energy, agriculture, jobs and market updates from Nyasa Times.', ), 'sports' => array( 'h1' => 'Malawi Sports News', 'title' => 'Malawi Sports News | Football, Netball & National Teams | Nyasa Times', 'desc' => 'Latest Malawi sports news, football, netball, athletics, clubs, national teams and Malawian athletes at home and abroad.', ), 'education' => array( 'h1' => 'Malawi Education News', 'title' => 'Malawi Education News | Schools, Universities & Exams | Nyasa Times', 'desc' => 'Malawi education news on schools, universities, exams, scholarships, teachers, students, policy updates and learning developments.', ), 'health' => array( 'h1' => 'Malawi Health News', 'title' => 'Malawi Health News | Healthcare & Public Health | Nyasa Times', 'desc' => 'Malawi health news on hospitals, public health, disease outbreaks, medicine, maternal health, children’s health and health policy.', ), 'entertainment' => array( 'h1' => 'Malawi Entertainment News', 'title' => 'Malawi Entertainment News | Music, Culture & Celebrities | Nyasa Times', 'desc' => 'Malawi entertainment news on music, culture, film, fashion, celebrities, festivals, events and creative industry updates.', ), 'columns' => array( 'h1' => 'Malawi Opinion & Analysis', 'title' => 'Malawi Opinion & Analysis | Columns & Commentary | Nyasa Times', 'desc' => 'Read Malawi opinion, columns, editorials and analysis on politics, governance, business, society, leadership and development.', ), 'religious-news' => array( 'h1' => 'Malawi Religion & Faith News', 'title' => 'Malawi Religion & Faith News | Churches & Community | Nyasa Times', 'desc' => 'Malawi religious news, church updates, faith events, Christian community stories, religious leaders and social impact coverage.', ), 'religion' => array( 'h1' => 'Malawi Religion & Faith News', 'title' => 'Malawi Religion & Faith News | Churches & Community | Nyasa Times', 'desc' => 'Malawi religious news, church updates, faith events, Christian community stories, religious leaders and social impact coverage.', ), ); } /** * ------------------------------------------------------- * 2. FIX VISIBLE CATEGORY H1 * ------------------------------------------------------- * * Converts: * Category archives: Latest Malawi News * * Into: * Latest Malawi News */ add_filter( 'get_the_archive_title', function ( $title, $original_title = '', $prefix = '' ) { if ( ! is_category() ) { return $title; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return $title; } $data = nyasa_category_seo_data(); if ( isset( $data[ $term->slug ]['h1'] ) ) { return esc_html( $data[ $term->slug ]['h1'] ); } return single_cat_title( '', false ); }, 999, 3 ); /** * Remove WordPress archive prefixes. */ add_filter( 'get_the_archive_title_prefix', '__return_empty_string', 999 ); /** * ------------------------------------------------------- * 3. FIX AIOSEO CATEGORY TITLES * ------------------------------------------------------- * * Prevents titles such as: * "Malawi Latest Malawi News News..." */ add_filter( 'aioseo_title', function ( $title ) { /* * Category titles */ if ( is_category() ) { $term = get_queried_object(); if ( $term && ! empty( $term->slug ) ) { $data = nyasa_category_seo_data(); if ( isset( $data[ $term->slug ]['title'] ) ) { return $data[ $term->slug ]['title']; } } } /* * Article titles * * Converts: * Article headline - Featured News Malawi | Nyasa Times * * Into: * Article headline | Nyasa Times */ if ( is_singular( 'post' ) ) { return wp_strip_all_tags( get_the_title() ) . ' | Nyasa Times'; } return $title; }, 999 ); /** * ------------------------------------------------------- * 4. FIX AIOSEO CATEGORY META DESCRIPTIONS * ------------------------------------------------------- */ add_filter( 'aioseo_description', function ( $description ) { if ( ! is_category() ) { return $description; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return $description; } $data = nyasa_category_seo_data(); if ( isset( $data[ $term->slug ]['desc'] ) ) { return $data[ $term->slug ]['desc']; } return $description; }, 999 ); /** * ------------------------------------------------------- * 5. DISPLAY CATEGORY DESCRIPTION * ------------------------------------------------------- * * Shows the short SEO introduction above the article list. */ add_action( 'loop_start', function ( $query ) { if ( is_admin() || ! is_category() || ! $query->is_main_query() ) { return; } static $nyasa_description_shown = false; if ( $nyasa_description_shown ) { return; } $term = get_queried_object(); if ( ! $term || empty( $term->slug ) ) { return; } $data = nyasa_category_seo_data(); if ( ! isset( $data[ $term->slug ]['desc'] ) ) { return; } $nyasa_description_shown = true; echo '
'; echo '

'; echo esc_html( $data[ $term->slug ]['desc'] ); echo '

'; echo '
'; }, 5 );

Water lilies on Shire River chocking submersible water pumps in Liwonde

Liwonde residents have for a long time being experiencing dry taps due to challenges that Southern Region Water Board (SRWB) was facing to pump water from the Shire River, which is heavily polluted with water lilies that have been chocking submersible water pumps.

Following Liwonde residents’ strong protests over the poor water service delivery, SRWB came up with an innovation by constructing a solar-powered borehole drilling system to address the situation and it has worked wonders — as attested to by representative of the community, Ken Ndanga on Friday during a site visit by deputy Minister of Water & Sanitation, Liana Kakhobwe Chapota to appreciate the project.

Ndanga, a well known journalist cum-politician and social issues activist, said they now have the luxury of running taps and took delight that they can afford having some cold showers since this is a very hot weather area.

Another pumping station at Liwonde Barrage

“I can safely say that we are now having an interrupted water supply [through this solar system of pumping water], which was never there before in the past months as we kept experiencing dry taps,” he said.

“It came to a point where we, as angry community members planned to hold demonstrations, but SRWB management swiftly engaged us, saying they were doing something about it.

“We put on hold our plans to demonstrate — waiting to see what SRWB management was up to and to our relief, we finally had our taps flowing uninterrupted.”

Ndanga said it was pathetic that the scenario was in the midst of the cholera outbreak; that their district hospital was in dire need of constant flow of water as well as the hospitality industry in need of the much needed water supply.

“We used to have just 2 hours a day of supply of water and after that we could stay several days on dry taps, but now we have the luxury of having cold showers as you are all aware that here in Liwonde the weather is very hot,” said Ndanga, who doesn’t mince words and calls a spade by its name.

In his remarks, SRWB Board chairperson, Brown Mpinganjira said the solar-pumped borehole system is a short term measure as they have secured a loan with the European Investment Bank and Exim Bank of India for a massive water pumping system which will cater for Liwonde, Balaka and neighbouring parts of Mangochi District.

After being appraised of the challenges being faced by the water pumping from the Shire River due to the water lilies and its accompanying debris — that led to the solar-powered borehole drilling — the Deputy Minister said they will liaise with the Ministry of Natural Resources on the way forward to clear the river of the water lilies challenges ahead of the massive project to afford Liwonde and Balaka of the much-needed clean potable water.

The solar powered borehole drilling plant

“Thus is part of the sustainable development goals number 6 that globally people should  have access to clean and safe water by the year 2030 and the government is working towards it,” she said, while taking cognizance that President Lazarus Chakwera recently commissioned Kamuzu Dam 1 as well as another project in Nkhata Bay.

“Liwonde communities shouldn’t be having challenges in water supply when they have the Shire River at their disposal. It’s unfortunate that the debris on the river [by the water lilies] has necessitated SRWB to opt for borehole drilling.

“However, this is for the short-term as soon, we will embark on the massive project for Liwonde all the way to Balaka and the neighbouring communities of Mangochi District.”

The tour of Liwonde was an extension of Kakhobwe Chapota’s visit of another massive water project that SRWB has completed constructing at Nkhudzi Bay in Mangochi through which residents should expect their taps to start flowing on Monday.

The deputy Minister was taken on a tour of the station, the reservoir tank at the top of Nkhudzi hill as well as the intake, and she expressed her satisfaction and delight, while describing the project as a impressive milestone achieved by SRWB and its construction contractor.

“I am very convinced that a commendable job has been undertaken here and I applaud SRWB and the constructor for a job well done in their mandate to provide the people of Mangochi access to clean water they have not had for quite a long time,” she said.

“We are happy to have reached this far as our target for completion has delayed for one year because of the interventions from other stakeholders, who took matters to the court.

The project attracted controversy early last year when civil society organisations (CSOs) — National Youth Climate Change Network; Center for Environmental Policy & Advocacy and Movement for Environment Action — obtained a court injunction stopping its implementation, citing that they feared the project would harm the environment in the national park.

But traditional leaders in Mangochi, led by Senior Chief Nankumba, stood up and told three civil society organizations to immediately vacate the injunction to allow the project to move on.

They were backed by another CSO, Forum for Social Economic Development (FOSEMA) and the chiefs maintained that some of the supposedly concerned people in the three CSOs were not even residents of Mangochi, who did not know the importance of the project.

A few weeks later, the Supreme Court in Blantyre stayed the injunction that granted SRWB granted permission to restart the project, which stalled for some months.

For this project, Board chairperson, Mpinganjira said the successful completion of the project was a milestone for SRWB as over 92,000 households will benefit from this pumping station.

He said: “For a long time, people have raised concerns that water from Lake Malawi has been underutilised. And it’s even ironic that people of Mangochi have not had access to clean potable water yet they are surrounded by a huge mass of water.”

He added that the benefits include low tariffs for low income earners as they will now be charged half of what Water Users Association (WUAs) currently charge.

Follow and Subscribe Nyasa TV :
Follow us in Twitter