Look up taxonomy value
-
OK – I’m hoping for a tip here – I basically have a loop that filters to the correct search results, then evaluates those results to run calculations based on fields stored in their City taxonomy and then displays the results.
However, I have a condition where instead of the property-city taxonomy of the post, I may have to look up another record in property-city taxonomy by name. For example, if a property is Unincorporated, the calculations come from that county’s record in the City Taxonomy. I can programatically get the condition and the name of the unincorporated taxonomy, but I’m having a hard time looking up the data from the other record.
Here’s my latest attempt (I have to make a lot of attempts to get things right, I’ll admit):
[–if var=uninc value=YES]
[set countyname]Unincorporated [field real_estate_county] County[/set][-pass fields=countyname]
[-loop taxonomy=property-city name={COUNTYNAME}]
[—if taxonomy=property city name={COUNTYNAME}]
[set new_taxid][field id][/set]
[set new_fees][field propertyfees][/set]
[/—if]
[/-loop]
[/-pass]
[/–if]Help please?
David
- The topic ‘Look up taxonomy value’ is closed to new replies.