Skip to content

Instantly share code, notes, and snippets.

View SahilMepani's full-sized avatar

Sahil SahilMepani

View GitHub Profile
@SahilMepani
SahilMepani / any.php
Last active February 24, 2018 06:07
WPML: Get posts from each term/category in accordion style for different languages.
<?php
/*=============================================================================
= WPML Get posts from each terms in accordion style for =
=============================================================================*/
$args = array(
'taxonomy' => 'TAXONOMY', // defaults to 'category'
'parent' => 0, // top level only
);
$terms = get_terms( $args );
?>