Any idea why I’m getting this fatal error?
Fatal error: Call to undefined function wp_pagenavi() in /home/protool1/public_html/wp-content/themes/multidesign/video.php on line 74
I don’t know PHP so any instructions greatly appreciated.
thx
here’s the video.php:
<?php /** Template Name: Video Playlist */ get_header(); ?>
<!-- Container Start -->
<div class="container_16">
<!-- Top Back Theme -->
<div id="top-back-two"></div>
<!-- Big Message -->
<div class="grid_11 top-message">
<h1>
<?php if ( get_post_meta($post->ID, 'bigtitle', true) ) { ?>
<?php echo get_post_meta($post->ID, "bigtitle", $single = true); ?>
<?php } ?>
</h1>
</div>
<!-- Emty Grid -->
<div class="grid_5">
</div>
<div class="grid_16 blog-page">
<h1>
<?php if ( get_post_meta($post->ID, 'title', true) ) { ?>
<?php echo get_post_meta($post->ID, "title", $single = true); ?>
<?php } ?>
</h1>
<h2 class="blog-page-space"></h2>
</div>
<div class="grid_16 list-page">
<?php
$category = get_option_tree('video_category');
$number = get_option_tree('video_show');
?>
<?php if (have_posts()) : ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$category&showposts=$number&somecat&paged=$paged"); ?>
<!-- Filter-->
<ul class="splitter">
<li>
<ul>
<li><a href="#" id="allcat" class="middle-button" ><span class="middle-right"></span>All </a></li>
<?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'video_genre') ) : ?>
<?php get_option_tree( 'video_genre', '', 'true' ); ?>
<?php else : ?><?php endif; endif; ?>
</ul>
</li>
</ul>
<div style="clear:both"></div>
<div id="listing">
<?php while (have_posts()) : the_post(); ?>
<!-- #1 -->
<div class="discounted-item <?php echo get_post_meta($post->ID, "video-genre", $single = true); ?> video-playlist">
<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=160&w=190&zc=1&a=t&s=5" alt="" class="video-playlist-left" />
<h1><?php echo get_post_meta($post->ID, "artist", $single = true); ?></h1>
<p><?php echo get_post_meta($post->ID, "song", $single = true); ?></p>
<a class="iframe" href="<?php echo get_post_meta($post->ID, "video", $single = true); ?>" title="Open Watch Video!"><img src="<?php bloginfo('template_directory'); ?>/image/theme/play.png" alt="" class="video-playlist-right" /></a>
</div>
<?php endwhile;?>
</div>
<div style="clear:both"></div>
<!-- Page Navi -->
<div class="page-navi" style="margin:0px 0px 0px -28px;">
<?php wp_pagenavi(); ?>
</div>
<?php else : ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>