Deaktivieren von dynamisch erzeugten Seiten

[ad_1]

Die Standard-Taxonomie-Archive können via Filterfunktion (Hook: inx_taxonomies) deaktiviert werden, die entweder in der Datei functions.php des Child-Themes per Code-Snippets-Plugin ergänzt wird:

/**
 * [immonex Kickstart] Standard-Archive der Immobilien-Taxonomien deaktivieren.
 */

add_filter( 'inx_taxonomies', 'mysite_disable_property_taxonomy_archives' );

function mysite_disable_property_taxonomy_archives( $taxonomies ) {
	if ( ! empty( $taxonomies ) ) {
		foreach ( $taxonomies as $taxonomy => $args ) {
			$taxonomies[ $taxonomy ]['publicly_queryable'] = false;
		}
	}

	return $taxonomies;
} // mysite_disable_property_taxonomy_archives

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer