• 45
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

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

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

File: /var/www/html/cnasolution/site/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] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]