CCCPaste

change archive category link with custom page

add_filter(
	'term_link',
	function ( $url, $term, $taxonomy ) {
		if ( 'category' === $taxonomy ) {
			switch ( $term->slug ) {
				case 'jnews_demo_music': /* change with your category sliug */
					return get_permalink( 2 ); /* change 2 with your page ID */
				case 'jnews_demo_stories':  /* change with your category sliug */
					return get_permalink( 2 ); /* change 2 with your page ID */
				case 'jnews_demo_global':  /* change with your category sliug */
					return get_permalink( 2 ); /* change 2 with your page ID */
				default:
					break;
			}
		}

		return $url;
	},
	10,
	3
);