Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter vectyr

    (@vectyr)

    If anyone has a solution, pleeeeeeeease give me a hand!

    edit category.php (or archive.php if category.php does not exist)
    and look for a line with single_cat_title() – where you probably also find the word ‘Categories’

    Thread Starter vectyr

    (@vectyr)

    Ah crud, it would probably help for me to mention that these are custom post types. This was a custom theme and there is no category.php file.

    Thread Starter vectyr

    (@vectyr)

    I’m using a taxonomy.php file to display the categories. Here is the code of that file:

    <?php get_header(); ?>
    
    		<div class="overflow">
    
    			<!-- Posts Begins -->
    			<div id="post-container">
    				<br />
    				<h2><?php the_title(); ?></h2>
    
    				<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
    					<div class="affirmations-single">
    						<h2 class="windsong"><?php the_title(); ?></h2>
    					</div>
    				<?php endwhile; ?>
    				<?php else: ?>
    					<h2>Oops, there's nothing to show you.</h2>
    					<p><a href="<?php bloginfo('url') ?>">Head on back to the homepage</a>, or try another search.</p>
    				<?php endif; ?>
    				<?php wp_pagenavi(); ?>
    			</div>
    
    			<!-- Sidebar Begins -->
    			<div id="sidebar">
    				<div id="sidebar-header">
    					<h3><a href="/">browse & <em>Shop</em></a></h3>
    				</div>
    				<ul>
    				    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Affirmations') ) : ?>
    				    <?php endif; ?>
    				</ul>
    			</div>
    
    		</div>
    
    		<div class="sidebar-bottom"><!--//--></div>
    
    <?php include (TEMPLATEPATH . '/footer-store.php'); ?>

    that’s not the right template file – do you have other page templates in your theme?

    instead of <div id="post-container">
    the tempate you are looking for
    has <div id="page-container"> in its code,
    followed by:

    <br>
    <h3>

    and then the ? Categories ? Lockets (which could be php code)

    Thread Starter vectyr

    (@vectyr)

    Ah, ok, here it is.

    <?php get_header(); ?>
    
    		<div class="overflow">
    
    			<div id="page-container">
    
    				<br />
    				<h3><?php wp_title(); ?></h3>
    
    				<!-- Products Begins -->
    				<?php //query_posts( 'post_type=products'); ?>
    				<?php if(have_posts()) : while(have_posts()) : the_post(); ?>		
    
    					<div class="product-single">
    						<a class="rollover" href="<?php the_permalink(); ?>"><?php the_post_thumbnail('product-thumbnail'); ?></a>
    						<p class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span class="float-right"><?php echo (get_post_meta($post->ID, 'price', true))?get_post_meta($post->ID, 'price', true):'' ?></span></p>
    						<p class="excerpt"><?php echo excerpt(15); ?></p>
    					</div>
    				<?php endwhile; ?>
    				<?php else: ?>
    					<h2>Oops, there's nothing to show you.</h2>
    					<p><a href="<?php bloginfo('url') ?>">Head on back to the homepage</a>, or try another search.</p>
    				<?php endif; ?>
    			</div>
    
    			<!-- Sidebar Begins -->
    			<?php include (TEMPLATEPATH . '/sidebar-store.php'); ?>
    
    		</div>
    		<div class="sidebar-bottom"><!--//--></div>
    
    		<?php wp_pagenavi(); ?>
    
    <?php include (TEMPLATEPATH . '/footer-store.php'); ?>
    Thread Starter vectyr

    (@vectyr)

    Here is the solution and it doesn’t need to be in the loop:

    <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page title display issue. This should be easy.’ is closed to new replies.