Show some texts in posts belonging to Specific category
It seems you are pointing to this div class “repair-tool”. Correct? If yes then you can modify your code like the below: <?php if( in_category( 1234, $post->ID ) ){ echo ‘<div class=”repair-tool”>text</div>’; } ?>