WordPress Me Kaise Kare Display Total Number of Comments Ko

WordPress Me Kaise Kare Display Total Number of Comments Ko ?

Kya aap apne WordPress site me total number of comments ko display karna chhate hai. Comments ki help se user aapki site ke content ke sath engage hote hai. Total no of comment display kar ke aap zyada se zyada user ko comment join karne ke liye encourage kar sakte hai. Is article me hum aapko batayenge WordPress Me Kaise Kare Display Total Number of Comments Ko ?

Plugin Ki Help Se Kaise Kare Display Total Number of Comments Ko ?

Ye method bahut easy hai aur is method ko WordPress ke liye recommend kiya jata hai. Aap code likhne ke badle plugin ki help se apne WordPress comment ke no ko display kar sakte hai.

Sab se pahle aapko Simple Blog Stats plugin ko install aur activate karna hoga. Aap plugin install karne ke liye hamare WordPress Plugin Install kaise kare is article ko follow kar sakte hai.

Plugin ko activate karne ke aadaap Settings » Simple Blog Stats page  pe kar plugin setting ko configure kare.

Is page pe aapko wo sahi shortcodes dikh jayenge jin ka use kar ke aap different stats ko show kar sakte hai jaise  total number of comments, registered users, number of posts, categories, page count, aur hi ahut kuch.

Yahan pe aapko [sbs_approved] is code ko copy karna hai taki aap apne WordPress site pe total number of approved comments display kar sake.

Agar aap chahte hai ke ye kisi post ya page pe display ho to aap simply ek new page create kare ya phir pahle wale page ko edit kare.

Post edit screen pe aapko WordPress content editor section me shortcode block ko paste kar dena hai.

WordPress Me Kaise Kare Display Total Number of Comments Ko

Aap Add block (+) icon pe click kar ke shortcode block ko find kare aur code ko add karne ke liye uspe click kare.

Ab aapko us [sbs_approved] shortcode ko block settings me paste karna hoga.

WordPress Me Kaise Kare Display Total Number of Comments Ko

Aap shortcode ke starting aur end me kisi bhi code ko display karne ke liye use kar sakte hai.

Agar aap chahe to shortcode ko paragraph block me bhi use kar sakte hai. Simply aap code ko copy kar ke wahapate kar sakte hai jahan aap comment count display karna chahte hai.

WordPress Me Kaise Kare Display Total Number of Comments Ko

Agar aap paragraph block ka use karte hai to aap WordPress me available text styling option ka use kar sakte hai, joki aapko paragraph block me nahi milega.

Code ko apne desired jagah pe paste karne ke baad aap changes ko save karne ke liye publish ya update button  pe click kare.

Aap apne website pe jakar kiye gaye changes ko dekh sakte hai.

Sidebar Widget Me Comment Display Kaise Kare ?

Aap sidebar Widget me comment ko display karne ke liye same shortcode ko WordPress widget me use kar sakte hai.

Aap Appearance » Widgets page me jakar ‘Text’ widget ko sidebar me add kar sakte hai.

WordPress Me Kaise Kare Display Total Number of Comments Ko

Aap text widget me jakar aap short code ko paste kar sakte hai. Code add karne ke baad aap save button pe click kar ke apne changes ko save kar len.

Ab aap apne site pe widget ko action me dekh sakte hai.

Without Plugin ke WordPress Comment Count Display Kaise Kare ?

Agar aap WordPress Comment Count display karne ke liye Plugin ka use karna nahi chahte hai to aap ise mannually hi kar sakte hai.

Aap code snippet ko site me add kar ke comment count ko display kar sakte hai. Aap is method ka use karne se pahle apne WordPress site ka backup le len, ye aapko aapke site ko restore karne me help karega.

Ab aapko niche diye gaye code ko functions.php file me add karna hoga.

function wpb_comment_count() {
$comments_count = wp_count_comments();
$message = ‘There are ‘. $comments_count->approved . ‘ comments posted by our users.’;

return $message;
}

add_shortcode(‘wpb_total_comments’,’wpb_comment_count’);

Ye code ek function ko create karega jo aapke site pe total number of approved comment ko display karne ke liye output generate kar dega.

Ab aap is code ka use[wpb_total_comments] apne posts, pages, or text widget me total number of comments ko website pe display kar sakte hai.

To Doston bas itnahi, Ummid hai aapko ye article ( Display Total Number of Comments ) informative laga hoga. Agar aapka koi swaaal hai to aap humse comment section me pooch sakte hain. Apke liye ye ( WordPress in Hindi ) course design kiya gya hai, Is Website pe apko WordPress Complete Course Hindi me mil jyega, Agr aap WordPress se related videos dekhna chahte hain to aap hmare WP Seekho YouTube Channel par bhi visit kar sakte hain.

Latest Post :