category name with hyphen
-
I’m having trouble getting the category name in hits. It’s because the category is hyphenated “taxonomies_hierarchical.course-category”. I think it’s being used with a math operator “-“. Anyone know how to solve this problem?
Code:
item: function (data) {
if (data.post_date < Math.floor(d.setDate(d.getDate() – 7) / 1000)) {
return (
‘<article> ‘ +
data.taxonomies.course-category + ‘‘ + ‘<p>’ + data._highlightResult.edd_price.value + ‘</p></div>’ +'<a class=”btn_button” href=”‘ +
data.permalink + ‘” target=”_blank”>Details </article>’
);
}
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘category name with hyphen’ is closed to new replies.