Tagged Posts ‘wordpress categories’

Warning: Undefined variable $pct in /home/.sites/609/site1266/web/blackbams-blog/wp-content/themes/SilentWoodsByBlackbam/archive.php on line 41
28. October 2011
von Blackbam

This little scripts help ordering WordPress categories by meta values – a thing which is not integrated into WordPress yet and which costs some time to integrate. 1. Create a meta value (or meta values) for categories to order by To order categories by a meta value the first thing which we have to do […]

Share
From category WP Scripts || No comments yet »
8. October 2011
von Blackbam

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.

Share
From category WordPress, WP Scripts || 1 comment »
Warning: Undefined array key "paged" in /home/.sites/609/site1266/web/blackbams-blog/wp-content/themes/SilentWoodsByBlackbam/archive.php on line 73