The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Can’t get this loop to work
Hi, I’d love to see if anyone can help with this little conundrum…
I’m trying to get a loop to display post from a category in a page template… nothing new here… however, I want to be able to assign the category from within the page admin area.
So, I’ve added a custom_field called category and the theory is they’d type the category slug into ten custom field and voila!
This code, however, is not working (it spits out the loop but doesn’t restrict it to the assigned category.
My humble thanks in advance :)
ID, 'category', true); ?>
Instead of $posts->ID try $post->ID
You Sir, totally and utterly Rock!!!
Perfect Thanks!! :)
haha so I’ve been told, glad you got it sorted out =)