currently I am working on some customized blog templating and was wondering if there is any way to find out if the newest post of a category is also the newest post of the whole blog, so I can skip the first post of the category.
- (1) is the newest post of the whole blog, which is in category (B).
- (2) is the newest post of the category (A)
- (3) is the newest post of the category (B), also is (1)
Basically I am asking how I would do this:
If (3) = (1), skip (3) and show 2nd newest post in the category (in this case category (B)).
Additional information about my blog specifically, while the information above is more general/universal.
In my blog I also have a category that is excluded from the blog and only shown on a specific page. How would I exclude this category from the whole solution for the initial question? Would it simply be enough to write
'cat' => -123,?