Home › Forums › Front-end Issues › Position 9 posts in grid based on Options page & Have timed posts work › Reply To: Position 9 posts in grid based on Options page & Have timed posts work
** EDIT: I just saw that you answered so I’ll read through that. Disregard this answer for now!
Also, I’m not sure I fully answered your question. Right now the loop is really basic. It takes in cikkek posts and is limited to a certain number of posts based on the layout.
A picture might help a bit: https://imgur.com/npKU5SL
The section I’m referring to is “kiemelt hirek”.
So the top 3 positions are:
1st loop: Take 1 cikkek post with acf options id from kiemelt 1
2nd loop: Take 1 cikkek post with acf options id from kiemelt 2
3nd loop: Take 1 cikkek post with acf options id from kiemelt 3
I understand that I need to combine the loops somehow, but I’m unsure as to how I can achieve that. I would somehow need to assign
$top1 = get_field(‘kiemelt1’, ‘option’); a value and order by that value.
That would fix the looping issue for one, but not the others.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!