Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi pmcruzm,
    Sorry, I’m not sure what the issue is.
    Can you provide some more details?

    Are you saying you cannot query by child tax terms?

    Thread Starter pmcruzm

    (@pmcruzm)

    Hi dcooney,

    I feel the delay in response ??

    You can see an example of what I comment on the following link https://cinetel.tv/test/material/

    When I select “Caja de Luz” or “Ca?ones” in the first select, I pass taxonomy_term and displays the results correctly. The problem occurs when select “Iluminación”, is father of those categories, when I pass taxonomy_term shows nothing.

    In WordPress I have the following tree categories for the post type
    – Iluminación (131) {not show}
    — Caja de Luz (2) {show ok}
    — Ca?ones (5) {show ok}

    Thanks.

    Thread Starter pmcruzm

    (@pmcruzm)

    Hi dcooney,

    I tried to get all the post type for the term iluminacion, that’s a father term and all results shown.

    $args = array(‘post_type’ => ‘portfolio’,’tax_query’ => array(array(‘taxonomy’ => ‘portfolio_filter’,’field’=> ‘slug’,’terms’=> ‘iluminacion’)));
    $new = new WP_Query($args);

    Have you any idea why the plugin does not work with that problem?

    Thanks

    Plugin Author Darren Cooney

    (@dcooney)

    Sorry, im not sure why this wouldn’t be working with child terms.

    Did it work properly when you tried a custom query above?

    $args = array('post_type' => 'portfolio','tax_query' => array(array('taxonomy' => 'portfolio_filter','field'=> 'slug','terms'=> 'iluminacion')));
    $new = new WP_Query($args);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem taxonomy_terms’ is closed to new replies.