title: Highlight current category in wordpress
body: <p>I am interested in how to highlight the category in which I am present - with the "current" class in the template. The problem is compounded by the fact that the list of categories is not retrieved from the database WordPress (the same place, as I understand, they are stored?), that is - directly from the HTML... How to make the following code:</p>
  
  <p>code:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul&gt;
      &lt;li class="blabla"&gt;
          &lt;a&gt;1&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="blabla"&gt;
          &lt;a&gt;2&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="blabla"&gt;
          &lt;a&gt;3&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>code to be dynamic, for example when I go into the category of "2" to "li" will be added to the class "current":</p>
  
  <p>code:
  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul&gt;
      &lt;li class="blabla"&gt;
          &lt;a&gt;1&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="blabla current"&gt;
          &lt;a&gt;2&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="blabla"&gt;
          &lt;a&gt;3&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I tried to read the codex but I have two problems - I'm not good at php and most importantly hard to read in English</p>
  
  <p>I sincerely apologize for the broken English with which I asked, "that" the question</p>