development – digital arts – internet
Knowledge is free. No one may take possession of it.
Diese Kategorie einzeln als RSS abonnieren.
28. Januar 2012
8. Oktober 2011
(English) It is a common problem to detect parents or childs of pages and categories in WordPress correctly. The way WordPress stores relationships in hierarchies is not that trivial sometimes, so the results when querying are a bit confusing sometimes. It took some time to determine and optimize functions which do this job good and without faults, and I want to present these. As in this function I prefer working with page IDs, as this is the savest way to identify certain pages. With little changes it should also be possible to use these using e.g. slugs. Both of these functions can be used inside and outside of "the Loop" or loops.
30. September 2011
2. Juli 2011
12. Juni 2011