title: Wordpress: Adding a variable inside wp_nav_menu
body: <p>I am trying to add a variable inside wp_nav_menu, I am not sure how to do it, please help me! Here is a snippet of the code:</p>
  
  <pre><code>wp_nav_menu(array(
                  'menu' =&gt; 'Main Menu',
                  'theme_location' =&gt; 'Main Menu',
                  'container' =&gt; null,
                  'container_class' =&gt; '',
                  'menu_id' =&gt; 'header-menu',
                  'menu_class' =&gt; '',
                  'before' =&gt; '&lt;span class="text1"&gt;',
                  'after' =&gt; '&lt;/span&gt;&lt;span class="text2"&gt;&lt;a href=""&gt;' . the_title($post-&gt;ID) . '&lt;/a&gt;&lt;/span&gt;',
              ));
  </code></pre>
  
  <p>PLEASE HELP ME!</p>