Forums
(@jonathasduarte)
8 years, 4 months ago
Thanks Michael!
This is so weird…
Here’s content-archive.php
content-archive.php
<h2 class="tileHeadline"> <a href="<?php the_permalink(); ?>" class="summary url"><?php the_title(); ?></a> </h2> <p><span class="description"><?php the_excerpt(); ?></span></p> <div class="keywords"> (Tags and categories still being implemented) </div> <span class="documentByLine"> <ul> <li> <?php the_date(); ?> </span> </li> <li> <?php the_time(); ?> </li> </ul> </span>
8 years, 5 months ago
Oh… I’ve tried to use the_meta(); and figured it out.
the_meta();
It turns out that my final key is called dados_adicionais_chapeu (dados_adicionais is my metabox’ name). The prefix was added by the Metabox generator I’ve used.
dados_adicionais_chapeu
Thanks! Now I understand how to use hooks ??
However, what worked for me was the 'nav_menu_css_class' filter, since I wanted this behavior on all list items on the menus (not only on page items).
'nav_menu_css_class'
+1!
Just had the same problem.