title: Magento in Thumbnail Category custom theme
body: <p>I am working with the 1.9.2.0 version of Magento in a custom theme, it is running smoothly, what I want and as is the name of the main category rather than the category name.Already I tested several tips right here, and several tutorials on the net. But I can not do it, could guide me where I am going wrong?</p>
  
  <p>1.1. I have this code that displays the categories and sub-categories on the home page: file top.phtml</p>
  
  <pre><code>&lt;?php
       Mage::helper('custommenu')-&gt;saveCurrentCategoryIdToSession();
       $menuData = Mage::helper('custommenu')-&gt;getMenuData();
       extract($menuData);
  
  // ---
  $txtLoading = '';
  $txtMenu = $this-&gt;__('Menu');
  $xRtl = $_rtl ? ' rtl' : '';
  $wpInitContent = &lt;&lt;&lt;HTML
  &lt;div id="custommenu-loading" class="$xRtl"&gt;
      &lt;div class="menu"&gt;
          &lt;div class="parentMenu menu0"&gt;
              &lt;a href="javascript:;"&gt;
                  &lt;span&gt;$txtLoading&lt;/span&gt;
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="clearBoth"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="custommenu" class="$xRtl" style="display:none;"&gt;
      &lt;div class="menu"&gt;
          &lt;div class="parentMenu menu0"&gt;
              &lt;a href="javascript:;"&gt;
                  &lt;span&gt;$txtLoading&lt;/span&gt;
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="clearBoth"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="custommenu-mobile" class="$xRtl" style="display:none;"&gt;
      &lt;div id="menu-button" onclick="wpMenuButtonToggle()"&gt;
          &lt;a href="javascript:void(0);"&gt;
              &lt;span&gt;$txtMenu&lt;/span&gt;
          &lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="menu-content" style="display:none;"&gt;
          &lt;div id="menu-mobile-loading" class="menu-mobile level0"&gt;
              &lt;div class="parentMenu"&gt;
                  &lt;a href="javascript:;"&gt;
                      &lt;span&gt;$txtLoading&lt;/span&gt;
                  &lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="clearBoth"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  HTML;
  ?&gt;
  &lt;div class="nav-container" id="wp-nav-container"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  var CUSTOMMENU_POPUP_WIDTH = &lt;?php echo $_popupWidth; ?&gt;;
  var CUSTOMMENU_POPUP_TOP_OFFSET = &lt;?php echo $_popupTopOffset; ?&gt;;
  var CUSTOMMENU_POPUP_DELAY_BEFORE_DISPLAYING = &lt;?php echo $_popupDelayBeforeDisplaying; ?&gt;;
  var CUSTOMMENU_POPUP_DELAY_BEFORE_HIDING = &lt;?php echo $_popupDelayBeforeHiding; ?&gt;;
  var CUSTOMMENU_RTL_MODE = &lt;?php echo $_rtl; ?&gt;;
  var CUSTOMMENU_MOBILE_MENU_WIDTH_INIT = &lt;?php echo $_mobileMenuWidthInit; ?&gt;;
  var wpCustommenuTimerShow = {};
  var wpCustommenuTimerHide = {};
  var wpActiveMenu = null;
  var wpMobileMenuEnabled = &lt;?php echo $_mobileMenuEnabled; ?&gt;;
  var wpMenuAjaxUrl = '&lt;?php echo $_menuAjaxUrl; ?&gt;';
  var wpMoblieMenuAjaxUrl = '&lt;?php echo $_moblieMenuAjaxUrl; ?&gt;';
  var wpPopupMenuContent = '';
  var wpMobileMenuContent = '';
  if ($('wp-nav-container') != undefined) {
      $('wp-nav-container').update(&lt;?php echo Mage::helper('core')-&gt;jsonEncode($wpInitContent); ?&gt;);
  }
  &lt;?php if (Mage::getStoreConfig('custom_menu/general/ajax_load_content')) : ?&gt;
  wpCustomMenuMobileToggle();
  Event.observe(window, 'resize', function() {
      wpCustomMenuMobileToggle();
  });
  &lt;?php endif; ?&gt;
  //]]&gt;
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  Event.observe(document, 'dom:loaded', function(){
      $$('.skip-nav').each(function(element) {
          element.observe('click', function(event) {
              wpMenuButtonToggle();
          });
      });
  });
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <ol start="2">
  <li>Through this code obtained right here on the site can view the images in a category:</li>
  </ol>
  
  <blockquote>
  <pre><code>** ThumbnailUrl
  $child=Mage::getSingleton('catalog/layer')-&gt;getCurrentCategory()-&gt;getId();
  $imageSrc=Mage::getModel('catalog/category')-&gt;load($child)-&gt;getThumbnail();
  $ThumbnailUrl=Mage::getBaseUrl('media').'catalog/category/'.$imageSrc;
  echo "&lt;img src='{$ThumbnailUrl}' /&gt;";
  </code></pre>
  </blockquote>
  
  <ol start="3">
  <li>How do I include code in the file list of categories on the home page, all my attempts derão errors?
  Forgive English</li>
  </ol>