I am going by this tutorial (https://redvinestudio.com/how-to-build-isotope-portfolio-in-your-wordpress-theme/),並且當我正在處理組合項目顯示爲鏈接的部分時,鏈接導致的URL將顯示在項目上方。下面是規定代碼:我的php echo聲明爲<a href="#"> is making the url visible
echo '<div class="all portfolio-item '. $tax .'">';
echo '<a href="'. the_permalink() .'" title="'. the_title_attribute() .'">';
echo '<div class="thumbnail">'. the_post_thumbnail('thumbnail') .'</div>';
echo '<h2>'. the_title() .'</h2>';
echo '</a>';
/*echo '<div>'. the_excerpt() .'</div>';*/
echo '</div>';
謝謝!像魅力一樣工作!同樣在提出這個問題之後,我注意到了the_title()部分的問題。將它改爲get_the_title()完成了這項工作!再次感謝! –