• Hello,

    I used this plugin to make CMS systems for JSON driven websites over the last years.

    Now I want to get all taxonomies and custom taxonomies I added to a page. how can I do this. I had to write filters?

    and the other thing: WPML support? is this possible? someone can do this?

Viewing 1 replies (of 1 total)
  • Thread Starter bluelemonade

    (@bluelemonade)

    ok, it’s easy. somebody posted a taxonomy controller a year ago:

    I added this, works fine. Perhaps someone can help me with getting polylang WPML data.
    regards

    `public function getAllNames() {
    global $json_api;

    $taxonomies = get_taxonomies();
    $return[‘taxonomies’] = $taxonomies;
    return $return;

    }

    public function getAll() {
    global $json_api;

    $taxonomies = get_taxonomies();

    foreach($taxonomies as $taxonomy){

    $terms = get_terms($taxonomy, array( ‘hide_empty’ => true) );
    $termsArray[$taxonomy]= $terms;

    }

    $return[‘termsArray’] = $termsArray;

    return $return;

    }`

Viewing 1 replies (of 1 total)
  • The topic ‘get taxonomies and custom taxonimes entries’ is closed to new replies.