Forums

[resolved] is_archive & is_page_template not working (nextgen) (2 posts)

  1. rumlab
    Member
    Posted 2 years ago #

    Hi.
    I'm trying to use these functions to determine whether my nextgen gallery navigation should be on top or below the pictures (editing imagebrowser.php). This seems to work fine with is_single or is_category ie:

    <?php if ((is_single()) || (is_category())): ?>
    
    	<div class="ngg-imagebrowser-nav">
    		<div class="back">
    			<a class="ngg-br(...)

    but if I change to or add is_archive or is_page_template('template-file.php'), it doesn't work anymore. Any ideas???

    Best
    Morten

  2. rumlab
    Member
    Posted 2 years ago #

    Studpid. Had a query_posts in my archive.php.

    M

Topic Closed

This topic has been closed to new replies.

About this Topic