• I used this WP theme”Workz”
    https://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 – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code – the above is partly corrupted by the forum parser]

    Please give me some advice.

  • The topic ‘「get_the_term_list」 get not URL's’ is closed to new replies.