Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($ptagobj as $ptag) {
- if (is_object($ptag)) {
- $tagstr .= $ptag->name . ' ';
- }
- if ("on" == get_option("relevanssi_include_taxonomy_parents")) {
- $taxonomy_parent = $ptag;
- while ($taxonomy_parent->parent && ($taxonomy_parent->parent != $taxonomy_parent->term_id)) {
- $taxonomy_parent = get_term($taxonomy_parent->parent, $taxonomy);
- if (is_object($taxonomy_parent)) {
- $tagstr .= $taxonomy_parent->name . ' ';
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement