こんにちは、
残念ながら、私の確認範囲ではそのオプションは存在しません。ただし、以下の手順で実現可能です:
-
discourse shortcode プラグイン をインストールし、テキストサイドバーウィジェットでショートコード
[discourse_topics]を使用します。 -
wp-discourse-shortcodes-master / lib / discourse-topic-formatter.phpに移動し、以下の行を探します。
$category = $this->find_discourse_category( $topic ); -
その行の直後に以下のコードを貼り付けます:
$category_url = $this->discourse_url . "/c/{$category['slug']}/{$category['id']}"; -
以下の行を探します(上部と下部の位置で 2 行見つかります):
$output .= '<span class="wpds-shortcode-category">' . $this->discourse_category_badge( $category ) . '</span>'; -
それらを以下のコードに置き換えます:
$output .= '<span class="wpds-shortcode-category"><a class="wps-cat-link" target="_blank" href="' . esc_url( $category_url ) . '">' . $this->discourse_category_badge( $category ) . '</a></span>'; -
WP ダッシュボードに移動し、このチェックボックスにチェックを入れて「オプションを保存」をクリックします。
なお、wp-discourse-shortcodes プラグインを更新すると、この変更は上書きされてしまいます。更新前にバックアップを取っておくことをお勧めします。頑張ってください。
