こんにちは
display_posts_shortcode_output フィルターフックあたりで a タグを追加するのはどうでしょうか。
参考ページ:
https://displayposts.com/2019/01/04/move-the-image-after-the-title/
例:
add_filter( 'display_posts_shortcode_output', function( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class, $author, $category_display_text ) {
$inner = $image . $title . $date . $author . $category_display_text . $excerpt . $content;
// a タグを削除
$inner = preg_replace( '/<a .*?>(.*?)<\/a>/', '$1', $inner );
$output = '<' . $inner_wrapper . ' class="' . esc_attr( implode( ' ', $class ) ) . '">';
$output .= '<a href="' . get_permalink() . '">' . $inner . '</a>';
$output .= '</' . $inner_wrapper . '>';
return $output;
}, 11, 11 );
ishitaka 様
ありがとうございます。
本体ファイルをいじって、リンクを与える事が出来たのですが、強引にやってましたので、こちらの方がスマートですね。
うまくいきました。
いつも、ありがとうございます。