mklappen
Forum Replies Created
-
I have tried that as well but what happens is that all posts are then loaded from ALM, not just the remaining posts that are related between the two custom post types.
The WP_Query I have only returns related posts between posts and the Custom post type.
$news = new WP_Query ( array( 'post_type' => 'post', 'connected_type' => 'games2posts', 'connected_to' => $post->ID, 'posts_per_page' => '5' ));Is there a way to pass in the WP_Query args into the ALM shortcode?
Thanks
Also when I remove the post__in param from the ALM shortcode, the LOAD MORE still only returns the 5 queries of the WP_Query from the posts_per_page param set there.
Thanks for reply, unfortunately the offset doesn’t seem to work from the ALM short code because I have the post__in parameter set to include the posts returned from WP_Query, which is only 5 based on the posts_per_page param.
When I remove the post__in parameter the ALM query returns all posts. My WP_Query returns related posts between two custom post types. (using posts 2 posts).
Forum: Fixing WordPress
In reply to: While Loop extra spaces in html outputupdated with “code” brackets so now it looks how I see it in source
Forum: Fixing WordPress
In reply to: While Loop extra spaces in html outputOf course the formatting of the HTML when I post here doesn’t show up how I see it, but the while loop outputs each “the_title()” on a separate line and there are extra spaces that’s causing more whitespace around my commas…
Thanks in advance for any help.