wordpress Front End PM 使用できるショートコード一覧

Front End PMで使えるショートコードはこれだけ。
PROでも同じ。

1.[front-end-pm]

デフォルトは、[front-end-pm fepaction="messagebox" fep-filter="show-all"] とあるから fepaction=を書き換えたくなるが試すのは無駄。
メッセージの一覧にメニューがつく

2.[fep_shortcode_new_message_count show_bracket="1"]

新しいメッセージの数を表示。これもそのまま使うのみ。

3.[fep_shortcode_message_to to="{current-post-author}" subject="{current-post-title}" text="Contact"]

これは、"{current-post-author}"、"{current-post-title}"、"Contact"は書き換えれば反映される

4.[fep_shortcode_new_message_form to="{current-post-author}" subject="{current-post-title}" heading="Contact"]

これ使ったことない。わかったら書きます。

5.[fep_shortcode_new_announcement_count show_bracket="1"]

これもこのまま使う。新しいお知らせ(announcement)の数が(1)みたいに表示されるだけ。
お知らせ一覧にリンクするには、

<a href="/表示用固定ページのスラッグ/?fepaction=new_announcement">
  [fep_shortcode_new_announcement_count show_bracket="1"]
</a>

のように書く。

以上、ショートコードは5個しかない(proでも)

5.で書いたように、URL/?fepaction=new_announcement"のようなオプションはある。
[front-end-pm]を設置したページからメニュー選択で遷移した先のページのURLが参考にできる。