Plugin Author
dmccan
(@dmccan)
Hi dragnsteph,
I love your site and it is a great theme for what you are doing. The link really helped.
The categories that show in that spot are the categories associated with posts. The wiki has its own categories. The fix is pretty simple. You will want to use a child theme so you won’t loose the change when the theme gets an update. If you don’t know how to make a child theme then I’m happy to make it for you.
Copy the file content-postmeta-single.php from the DarkElements theme directory to your child theme directory.
Change the line:
<?php printf( __( 'Category: %s', 'darkelements' ), get_the_category_list( __( ', ', 'darkelements' ) ) ); ?>
To:
<?php if ( is_singular('yada_wiki') ) { ?>
<?php printf( __( 'Category: %s', 'darkelements' ), get_the_term_list( $post->ID, 'wiki_cats', '', ', ') ); ?>
<?php } else { ?>
<?php printf( __( 'Category: %s', 'darkelements' ), get_the_category_list( __( ', ', 'darkelements' ) ) ); ?>
<?php } ?>
That code checks to see if it is a wiki page then it outputs the wiki category, otherwise does what it does now.
Let me know if you have any problems or further questions. Have fun.
David
Plugin Author
dmccan
(@dmccan)
Hi dragnsteph,
Have you made any progress with this? Let me know if you need some help.
Regards,
David
I finally had a few minutes strung together to do this and it worked perfectly 🙂 Thanks so much. I’m working through how best to organize all the wiki pages but I’m really enjoying the process! Thanks for such a great plugin and for your help.
Plugin Author
dmccan
(@dmccan)
You are welcome. I am glad it went smoothly.
@dragnsteph – As a technical guy I have no taste when it comes to styling. You’ve combined an impressive use of the tools with very elegant styling. Congratulations. It’s all very inspirational. Thanks.
@starbuck Thank you! I can’t take much credit for the structure of the theme as it’s a freebie from the wordpress themes gallery, called DarkElements – but inasmuch as I’ve customized it a little, I’ll take your compliment 🙂 I’m a graphic designer by trade but not someone who can code from the ground up – I generally modify something that’s close to what I want, and this theme ticks most of my boxes. Content is key, and David’s plugin has been a huge help.
-S