• 45

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once

I need to list the taxonomies that apply to this post. If the taxonomy only one then this code works well:

global $post;   $terms = wp_get_post_terms($post->ID, 'gintype');   if($terms){   $output = array();   foreach($terms as $term){    $outputnk[] = get_term_link( $term->slug, 'gintype');    $outputme[] = $term->name;    } } 

But if a post has several taxonomy items this code does not work.

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]