Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fernando Briano

    (@fernandobt)

    Hi xmontik,
    As you can see in the example template file, there’s a for loop to iterate through each post which goes like this:

    foreach ($this->catlist->get_categories_posts() as $single){

    So $single is the post object. You can access its id with $single->ID.

    Thread Starter xmontik

    (@xmontik)

    Hi fernandobt,

    thanks very much for reply. Now it’s done and it work perfect. It was what i need 🙂

    Thanks a lot!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to get post ID’ is closed to new replies.