currently I am working on some extremely 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.
- (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 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,?
Read more here:: Check if newest post of category is newest post in general, too