私は次のようにPHPのwhileループを持っています:
<?php while (have_posts()) : the_post(); ?>
<li>
<?php
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID,
'orderby' => 'menu_order',
'order' => 'ASC'
);
$attachments = get_posts($args);
if ($attachments) {
foreach ( $attachments as $attachment ) {
$image_attributes = wp_get_attachment_image_src( $attachment->ID, large );
$alt_text_title = $attachment->post_title ;
//print_r($attachment);
echo "<img src=\"$image_attributes[0]\" alt=\"$alt_text_title\">";
}
}
?>
<h3><a href="http://<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_content(); ?>
</li>
<?php endwhile;?>
h3内のタグはすべてのタイトルをハイパーリンクにしますが、これらのタイトルの1つをリンクにしないようにしたいので、タグの影響をまったく受けないようにします。
これは可能ですか?