• Resolved peucaio

    (@peucaio)


    So, me again trying to integrate into my wordpress workflow.

    I’ve tried to configure the plugin along with PODS (I’m using it to create the custom taxonomies + custom post types). It works smoothly with custom post types, but I couldn’t make the new ordering work with custom taxonomies (categories and subcategories). I commented the line that usually ordered by term_id, but still keeps the same order. any tips on how to do it?

    $pod_processos = pods(‘processos’);
    $pod_processos_params = array(
    ‘where’ => ‘tt.parent = ‘. $cat_id,
    //’orderby’=> ‘term_id ASC’
    );

    $pod_processos->find($pod_processos_params);

    while ( $pod_processos->fetch() ) :
    echo $pod_processos->field(‘title’);
    endwhile;

    Thanks,

    • This topic was modified 6 years, 6 months ago by peucaio.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    It seems like you are working with custom query having joins?

    @peucaio You shouldn’t be doing a pods API sort there since this is just a standard custom taxonomy and custom post type, correct? If you want to work with other plugins in the WP infrastructure, you’d be using WP Query instead.

    Is there something specific about how you’ve configured your categories & sub-categories? (ie, are you using a relationship field to connect them or something of that nature?).

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Thank you Jim. I have just checked the versatility of Pods and i will surely work on some compatibility releases soon. Thank you for replying here, it’s a great honor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Taxonomy ordering with PODS’ is closed to new replies.