2016-11-20 55 views
-1

用戶是否有任何方式只能在wordpress中看到他們的評論?用戶只能在wordpress中看到他們的評論

我READE這個話題: Commenter should see only his comments in wordpress

,但它是沒有用的。

問候

代碼的註釋模板:

<ol class="comment-list"> 
    <?php wp_list_comments(array('style' => 'ol', 'short_ping' => true,)); ?> 
</ol><!-- .comment-list --> 
+0

爲什麼不呢?在這個鏈接的解決方案是你正在尋找 – elicohenator

+0

我不知道的PHP:| –

+0

檢查我的答案在這裏 – elicohenator

回答

0

您試圖修改默認的WordPress設置 - 在這種情況下,PHP是比necessery多。您所鏈接的鏈接中的解決方案是最簡單和最優化的 - 如果重要的是聘請開發人員爲您做這件事。

這是一些示例代碼:

<ol class="comment-list"> 
    <?php $user_id = get_current_user_id(); 
     $user_comments = get_comments('user_id' => $user_id); 
     wp_list_comments( 
      array('style' => 'ol', 'short_ping' => true,), 
     $user_comments); ?> 
</ol> 
+0

爲什麼不在你的問題?請風格,並提出問題 – elicohenator

+0

該網站未加載。我很抱歉,但我無法爲您提供比我更多的幫助。我的朋友,僱用一名開發人員。 – elicohenator

+0

謝謝。祝你好運 –

相關問題