gregmac
Forum Replies Created
-
Here’s an example: https://i.imgur.com/alcZQ.png
So there are 4 widget areas, and each have just the FRP widget in them set to display one post.
* Featured: Displays the latest post
* Head1: Displays the latest post from category A
* Head2: Displays the latest post from category B
* Head3: Displays the latest postSometimes I post to cat A, sometimes B, and sometimes to other (or no) categories. Without this patch, here’s the issue:
* If I post with no category, Featured and Head3 show the same thing
* If I post to category A, Featured, Head1 and Head3 show the same thing
* If I make a post in both cat A and B, all 4 areas show that same postWith this patch:
* If I post to no category, Featured shows that post, and Head3 shows the second-latest post provided it is not in Head1 or Head2
* If I post to category A, Featured shows that post, Head1 shows the next-latest post in category A, and Head3 shows the next-latest post that is not in cat A or B
* Even if I make a post in both cat A and B, I’m still guaranteed that it will only ever show up onceWhat I was looking for was a way to have two distinct “sections” on the site (cat A and B), and also be able to post outside of those categories, and still bring them together in a nice way.
—-
I guess here’s another way to look at it. If you only use one FRP widget, this patch will not affect the behaviour at all. If you use more than one FRP widget, this guarantees no duplication — so the only people affected are ones that use multiple FRP’s on a page but actually want duplication. I am not sure what the use case there is, but if there is a legitimate one, it’s relatively straight-forward to add a config setting to keep the existing behaviour.