We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I show posts of connected & related? I tried this code but it doesn't work
// Find connected pages $connected = new WP_Query( array( 'connected_type' => 'posts_to_pages', 'connected_items' => array( 'get_connected', 'get_related' ) get_queried_object(), 'nopaging' => true, ) ); // Display connected pages if ( $connected->have_posts() ) : ?> <h3>Related pages:</h3> <?php while ( $connected->have_posts() ) : $connected->the_post(); ?> "><?php the_title(); ?> <?php endwhile; ?> <?php // Prevent weirdness wp_reset_postdata(); endif; ?>
The text was updated successfully, but these errors were encountered:
Have you used your connection name in 'connected_type'? There is also some extraneous markup in your code just before 'the_title'?
Sorry, something went wrong.
No branches or pull requests
How do I show posts of connected & related? I tried this code but it doesn't work
The text was updated successfully, but these errors were encountered: