Forums

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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37898
    richerimage
    Member

    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); ?>


    // Blah...
    #102234
    SgtLegend
    Member

    Instead of $posts->ID try $post->ID

    #102236
    richerimage
    Member

    You Sir, totally and utterly Rock!!!

    Perfect Thanks!! :)

    #102302
    SgtLegend
    Member

    haha so I’ve been told, glad you got it sorted out =)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Back End’ is closed to new topics and replies.