• I’ve been using wp_tag_cloud on my footer, which is inserted via the get_footer on all pages. It works perfectly, except on the home page, where it doesn’t show anything.

    This is the code:

    <div class="boxes grid_7 metaboxes">
    <h5>Tags populares</h5>
    <p><?php wp_tag_cloud('number=50&smallest=10&largest=10&orderby=count&order=DESC'); ?></p>
    </div>

    However, on the home page, and only there, the output is:

    <div class="boxes grid_7 metaboxes">
    <h5>Tags populares</h5>
    <p></p>
    </div>

    Home page: http://www.jogosdosaopaulo.com.br/
    Example of page where it works: http://www.jogosdosaopaulo.com.br/gol-espirita-braganca-paulista/

    (The cloud is at the bottom of the page.)

    Does anyone have an idea of what can be causing this?

    Thanks in advance for any help,
    Alexandre

Viewing 2 replies - 1 through 2 (of 2 total)
  • What happens when you use the default theme?

    Thread Starter agiesbrecht

    (@agiesbrecht)

    Same thing. I manually added the following code to the most recent Twenty Eleven theme:

    <!-- manually added -->
    
    <div>
    <h5>Tags populares</h5>
                    <p><?php wp_tag_cloud('number=50&smallest=10&largest=10&orderby=count&order=DESC'); ?></p>
    </div>
    
    <!-- manually added -->

    It was the only thing I changed in the default theme for this test.

    But, again, all pages showed the tag cloud, but not the home page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_tag_cloud displays correctly… except on the home page’ is closed to new replies.