SO, why doesn't Classipress pass along the Parent Category in Ads?
In response to a problem maggisam has presented elsewhere in the forum I have done some looking around for the past few hours and I will be darned if I know how to INCLUDE the Parent Category Nice name in all ads. I created a mod that showed the parent category of individual ads when they were listed on a list page but...as maggisam has pointed out it would be very useful to show in each ad, no matter how it is sorted in lists after searches, or if the ad shows up in "most popular" or "random"...whatever it would be a very nice option to ALSO display the Parent category where that ad is placed.
Right now Classipress will not display the Parent Category within the ad. The final sub-category, yes, but not the Parent category for that ad.
I have looked all over wordpress sites and functions and I find all kinds of things that pre-suppose you want to see the children of a parent. But nothing that goes backward... using the child to go backwards in the tree, find the parent, and display the Parent category name.
The few things I thought might work are WP
functions that choke on Classipress.
Does someone have the answer to such a simple thing?
It seems to me that every ad in its classipress loop ought to pass along the PARENT category id and catname for each ad no matter what sub-category it belongs to.
Then we can ad it to the string if we choose to.