Last active
January 22, 2018 17:10
-
-
Save babelpuntocl/4b024c9d3bce00bd291aefa4460413e2 to your computer and use it in GitHub Desktop.
Listar nombre y descripcion categoria custom post type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $args = array('type' => 'rentals', 'taxonomy' => 'rental-categories'); | |
$categories = get_categories($args); | |
foreach($categories as $category) { | |
echo' | |
<div class="fg12 rentals"> | |
<h2> '. $category->name . '</h2> | |
<div class="info"> | |
<p>'. $category->description . '</p> | |
<a class="button" href="#"> | |
Learn More → | |
</a> | |
</div> | |
</div>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment