• Resolved rafaortman

    (@rafaortman)


    p2p_type( $var )->get_connected( get_the_ID() );
    
    The property $connected->posts returns empty when called on taxonomy archives. Anybody knows why?
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alexrollin

    (@alexrollin)

    Function p2p_type( $var )->get_connected( get_the_ID() ); should be used on single post pages, because on archive page it doen’t have specific post ID retrieved with get_the_ID().

    Thread Starter rafaortman

    (@rafaortman)

    Thank you for your answer, but actually the id is returned, I can even print it. BTW on custom post archive property $connected->posts does NOT returns empty. This behavior is very confusing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$connected->posts returns empty when called on taxonomy archives’ is closed to new replies.