Posts 2 Posts
List all the terms (merged) of connected posts (1 post)

  1. Goudie
    Posted 3 years ago #


    I try to do something but after hours of searching, I have to ask for some help. I display all the posts connected to my current post with something like that :

    $connected = new WP_Query( array(
      'connected_type' => 'my_connected_type',
      'connected_items' => get_queried_object(),
      'nopaging' => true,
    ) );

    The loop is working very well but what I want to do is to display ALL the terms (from one taxonomy) of these connected posts, grouped in a single list (and with no duplicates) after the loop.

    Have you any idea ?

    Thank you very much !


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic