About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
I can see how this would be helpful 🙂
How might one implement this on custom post type?
Does it require moving the get_categories call to a different area, so as not to get all categories, but only categories listed in the custom post type?
Instead of get_categories, use get_terms() instead, e.g.
$tax_terms = get_terms(
$taxonomy_name,
array(
‘orderby’ => ‘slug’,
)
);
foreach( $tax_terms as $tax_term ) :
…
https://sridharkatakam.com/displaying-cpt-entries-grouped-by-custom-taxonomies-in-genesis/
Thanks David.
[…] David Wang on Displaying Posts organized by Categories in WordPress […]