sterndata on "how to get the index number of current post ?"

ساخت وبلاگ

rc_90_2000
Member
Posted 29 minutes ago #

I would like to get the index number of current post like as :

(3 of 45 posts) in single.php

I have tried to get it

echo $wp_query->current_post;

But the result is "-1";
any post also get "-1";

any one can help ?

Are you using it in the loop?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 210 تاريخ : شنبه 5 تير 1395 ساعت: 10:59