• Resolved ColorFish.gr

    (@prokopino)


    greetings
    in this part of code, my theme takes the normal tags to use them after in single page view with the function get_the_tags()

    my question, my request for help, is how can i change it to takes AND the event-tags?

    thank you for your time and for your support!

    function get_the_tags() {
            if (!$this->is_single) {
                return;
            }
    
            if (td_util::get_option('tds_show_tags') == 'hide') {
                return;
            }
    
            $buffy = '';
    
            $td_post_tags = get_the_tags();
            if ($td_post_tags) {
                $buffy .= '<ul class="td-tags td-post-small-box clearfix">';
                $buffy .= '<li><span>' . __td('TAGS') . '</span></li>';
                foreach ($td_post_tags as $tag) {
                    $buffy .=  '<li><a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a></li>';
                }
                $buffy .= '</ul>';
            }
    
            return $buffy;
        }

    https://wordpress.org/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to get event-tags in code array?’ is closed to new replies.