WordPress.org

Ready to get started?Download WordPress

Forums

「get_the_term_list」 get not URL's (1 post)

  1. RMVP
    Member
    Posted 1 year ago #

    I used this WP theme"Workz"
    http://wpexplorer.me/demo.php?theme=workz

    Go to the next page by clicking the Recent Work image.

    I'd like to "Category" without a link.

    This WP's PHP is as

    <?php
    			//get terms
    			$terms = get_the_term_list( get_the_ID(), 'portfolio_cats' );
    			?>

    taxonomy-portfolio_cats.php is as

    <?php
    /**
     * @package WordPress
     * @subpackage workz Theme
     */
    ?>
    
    <?php get_header(); ?>
    
    <div id="page-heading">
    	<?php
            $term =	$wp_query->queried_object;
            echo '<h1 class="page-title">'.$term->name.'</h1>';
        ?>
    </div>
    
    <?php if (have_posts()) : ?>
    
    	<div class="post full-width clearfix">
    
        <div id="portfolio-description">
        	 <?php echo category_description( ); ?>
        </div> 
    
        <div id="portfolio-wrap" class="clearfix">
    
            <?php
            while (have_posts()) : the_post();
            //get portfolio thumbnail
            $thumbail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'portfolio-thumb');
            ?>
    
            <?php if ( has_post_thumbnail() ) {  ?>
     		<div class="portfolio-item">
    		<a>" title="<?php the_title(); ?>"><img src="<?php echo $thumbail[0]; ?>" height="<?php echo $thumbail[2]; ?>" width="<?php echo $thumbail[1]; ?>" alt="<?php echo the_title(); ?>" /></a>
    		<h2><a>" title="<?php the_title(); ?>"><?php echo the_title(); ?></a></h2>
        </div>
            <?php } ?>
    
            <?php endwhile; ?>
    
        </div>
    
    	<?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } wp_reset_query(); ?>
    
    	<?php endif; ?>
    </div>
    <?php get_footer(); ?>

    [please mark any posted code - http://codex.wordpress.org/Forum_Welcome#Posting_Code - the above is partly corrupted by the forum parser]

    Please give me some advice.

Topic Closed

This topic has been closed to new replies.

About this Topic