Tagged: x
-
AuthorPosts
-
March 8, 2017 at 4:01 am #1398836
DigicubeParticipantHi,
on one X Site we do use Post Tags, that do have a lot of content in them (like an article). For a long time on this blog, the tag system worked normally: meaning, if someone clicked on a tag underneath an article, the tag content was shown and underneath a list of articles, where the tag applied to.
This stopped working.
Now if you go to a tag, you only see the posts, where the tag was used, but the content (description of the tag) is missing. You can see it here:
https://lana.jetzt/info/acerola/
Thank you for your help,
MattMarch 8, 2017 at 8:19 am #1399075
ChristianModeratorHey Matt,
Please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
If that doesn’t help, Hey there, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
March 8, 2017 at 12:17 pm #1399423
DigicubeParticipantThis reply has been marked as private.March 8, 2017 at 7:23 pm #1399939
Rue NelModeratorHello There,
Thanks for providing the information. Do you want to display the tags at the bottom of each single blog post? If that is the case, assuming that you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.
// Custom tags // ============================================================================= function display_tags(){ ?> <?php if ( has_tag() ) : ?> <footer class="entry-footer cf"> <?php echo get_the_tag_list(); ?> </footer> <?php endif; ?> <?php } add_action('x_after_the_content_end', 'display_tags'); // =============================================================================And if you would like to display the tag/category descriptions in the category/tag archive pages, please insert this following code in your child theme’s functions.php file.
// Add Custom banner for category and tag pages // ============================================================================= function add_custom_category_and_tag_banner(){ ?> <?php if( is_category() || is_tag() ) : ?> <div id="custom-banner" class="x-section"> <div class="x-container max width" style="margin: 0px auto;padding: 0px;"> <div class="x-column x-sm x-1-1" style="padding: 0px;"> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : 'Category Archive'; ?> <h2 class="h-custom-headline cs-ta-center h3"><span><?php echo $title; ?></span></h2> <?php if ( is_category() ){ $desc = category_description(); } if ( is_tag() ){ $desc = tag_description(); } $desc = $desc != '' ? $desc : '<p>Please enter a decription by editing the category or tag. </p>'; ?> <div class="x-text"> <?php echo $desc; ?> </div> </div> </div> </div> <?php endif; ?> <?php } add_action('x_before_view_global__script-isotope-index', 'add_custom_category_and_tag_banner'); // =============================================================================We would loved to know if this has work for you. Thank you.
March 9, 2017 at 10:09 am #1400672
DigicubeParticipantThank you for the great support. This part “And if you would like to display the tag/category descriptions in the category/tag archive pages, please insert this following code in your child theme’s functions.php file.” worked for me!
Excellent!All the very best,
MattMarch 9, 2017 at 12:09 pm #1400801
RupokMemberYou are welcome Matt!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1398836 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
