14
0
Fork 0

Compare commits

...
This repository has been archived on 2024-01-12. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits

Author SHA1 Message Date
Willi Junga 924ca80008
removed test 2021-01-19 10:34:39 +01:00
Willi Junga 98faf9e839
add tag support to pages 2021-01-19 10:30:21 +01:00
4 changed files with 38 additions and 3 deletions

View File

@ -2,6 +2,10 @@
Many many branches of costumized Childthemes for Urwahl3000
Credits to: https://chatbegruenung.de/direct/jungawil & https://chatbegruenung.de/direct/schmi531
For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/urwahl3000
1. Select branch from: https://git.verdigado.com/NB-Public/Urwahl3000-Childthemes/branches/
2. Download branch as ZIP
@ -11,3 +15,13 @@ Many many branches of costumized Childthemes for Urwahl3000
The main branch is protected.
## Version Changes
### V0.1
_Di, 19.01.2021 10:28_
* add tag support to pages

View File

@ -7,7 +7,28 @@ function kr8_childtheme() {
}
add_action( 'wp_enqueue_scripts', 'kr8_childtheme',1000 );
// add tag support to pages
function tags_support_all() {
register_taxonomy_for_object_type('post_tag', 'page');
}
// ensure all tags are included in queries
function tags_support_query($wp_query) {
if ($wp_query->get('tag')) $wp_query->set('post_type', 'any');
}
// tag hooks
add_action('init', 'tags_support_all');
add_action('pre_get_posts', 'tags_support_query');
?>
?>

View File

@ -1,11 +1,11 @@
/*
Theme Name: Urwahl3000 Childtheme
Theme Name: Urwahl3000 Childtheme - kv-neustadt-weinstrasse
Theme URI: http://kre8tiv.de/urwahl3000/
Description: Child-Theme für Urwahl3000
Author: Design & Kommunikation im modulbüro
Author URI: http://www.modulbuero.de
Template: urwahl3000
Version: 1.0.1
Version: 0.1
*/
/* Ab hier die eigenen Anpassungen... */

0
test
View File