title: Display posts from the same child taxonomy as the current post
body: <p>I’m following this tutorial</p>
  
  <p><a href="https://sridharkatakam.com/custom-wordpress-widget-showing-cpt-entries-categorycategories/" rel="nofollow">https://sridharkatakam.com/custom-wordpress-widget-showing-cpt-entries-categorycategories/</a></p>
  
  <p>I have two custom taxonomies (events / centers), with their respective child taxonomies ( <code>event1, event2… / center1, center2…</code>). </p>
  
  <p>What should I change to display posts from the same child taxonomy as the current post? (One post can use one <code>eventschild</code> <code>taxonomy</code>, a centers child taxonomy, or both.)</p>
  
  <p>I just want it to match the <code>taxonomy</code>, i don’t use any category.</p>
  
  <p>What i have to use instead of these?</p>
  
  <pre><code>get_the_category()
  category_nicename
  </code></pre>
  
  <p>Don’t mind if is using this method</p>
  
  <p><a href="https://sridharkatakam.com/show-posts-category-current-post/" rel="nofollow">https://sridharkatakam.com/show-posts-category-current-post/</a></p>
  
  <p>Very appreciate any help!</p>