summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorMax2019-02-17 17:20:43 +0100
committerMax2019-02-17 17:20:43 +0100
commitc4b2eb526c5733cc32b0550eb76fd072531e223c (patch)
tree9e3355627357ca392ae26574c81181bf33bd028e /functions.php
parent43a8c0fe50529a6b4161d12f087925c06ce37574 (diff)
downloadfuselkoenig_de-c4b2eb526c5733cc32b0550eb76fd072531e223c.tar.gz
Creates custom post type and custom taxonomy and renders them correctly.
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index 7553f43..8321d02 100644
--- a/functions.php
+++ b/functions.php
@@ -92,10 +92,12 @@ require get_template_directory() . '/taxonomy.php';
* Removes "Tag:" and "Category:" from archive pages.
*/
add_filter('get_the_archive_title', function ($title) {
- if ( is_category() ) {
- $title = single_cat_title( '', false );
- } elseif ( is_tag() ) {
- $title = single_tag_title( '', false );
+
+ if ( is_tax('type') ) {
+ $title = single_term_title( '', false );
+ $title = 'Aktuelle ' . $title . "-Angebote";
+ } else {
+ $title = single_term_title( '', false );
}
return $title;
});
@@ -255,6 +257,12 @@ if ( ! function_exists("get_my_clean_title")) {
}
/**
+ * Support for special offer pages.
+ */
+require_once __DIR__ . '/angebote/inc/functions.php';
+require_once __DIR__ . '/angebote/inc/template.php';
+
+/**
* Removes emoji support.
*/
/*