• Resolved juntodigital

    (@juntodigital)


    The linked page has 3 relevant types to work with:
    – Floor Plan (custom post type)
    – Floor Plan Group (custom taxonomy used to group multiple floor plans together)
    – Floor Plan Type (custom taxonomy used for the tabs in each floor plan group)

    Was working as expected, and not sure how it went wrong, but suddenly when the Floor Plan Group taxonomy ordering is enabled, I get no terms no matter what approach I use for querying them. The following return an empty:

    // trying with get_terms
    $floor_plan_groups = get_terms(['taxonomy' => 'floor_plan_group', 'hide_empty' => false]);
    
    // trying with WP_Term_Query
    (new WP_Term_Query(['taxonomy' => 'floor_plan_type']))->get_terms();

    After flipping the toggle in the plugin settings to turn off “Floor Plan Group” ordering, I get all my terms as expected from both of the above snippets.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support beatrice12

    (@beatrice12)

    Hello @juntodigital,

    Thanks for reaching out to us!

    Can you please tell us which version of the plugin you use, how you create those CPTs and where exactly do you add the query code you sent us?

    Thank you,

    Beatrice.

    Marking this support thread as resolved due to inactivity. If you have any other questions or need further help please open a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom WP_Term_Query returns empty results’ is closed to new replies.