Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mschefers

    (@mschefers)

    Tried this one, but failed too. I think this is the mistake.

    $recent = new WP_Query( "category_name=" . $newskat . "&posts_per_page=4" );

    It just display any category, so i think the variable stays empty.

    If i change it to

    $recent = new WP_Query( "category_name=U11&posts_per_page=4" ); it shows up correctly.

    Thread Starter mschefers

    (@mschefers)

    Just recognized that i used the_field instead of get_post_meta und with this, it is working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding dynamic Posts-Loop to Page’ is closed to new replies.