• queimel

    (@queimel)


    Well, let me explain this:

    I cant display the child posts fields when i use a certain type of query. I use this query, to have more control of the loop, and display the child posts in ASC order:

    $childargs = array(
    'post_type' => 'recorridos-items',
    'numberposts' => -1,
    'orderby' => 'ID',
    'order' => 'ASC',
    'meta_query' => array(array('key' => '_wpcf_belongs_recorridos-pag_id', 'value' => get_the_ID()))
    );
    
    $recorridos = get_posts($childargs);
    foreach ($recorridos as $recorrido) {
    }

    When i use this query, the child posts fields simply not appear.

    Instead, when i use the normal way of querying the child posts, it works perfectly, and show all the fields

    $recorridos = types_child_posts('recorridos-items');
    foreach ($recorridos as $recorrido) {
    }

    But, i need to display the child posts in ASC order. There is another way to display the child posts in ASC order and display the child posts fields?
    I really need help to ressolve this issue! thanks!

    https://www.ads-software.com/extend/plugins/types/

  • The topic ‘I cant display fields of the child posts’ is closed to new replies.