• Resolved fearghalmurphy

    (@fearghalmurphy)


    I’m using the templates located in /themes/default/templates – all i need is the actual current ID of the post. There is a $fields object which isn’t helping a lot .. i can get things like $fields->_h_address – but all i need is the ID – how can i get this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support bobbied

    (@bobbied)

    Hi @fearghalmurphy

    Thank you for reaching out about this. Which template are you editing? You may be looking for $listing_id but I can’t be sure unless I have more information. Please let me know.

    Thread Starter fearghalmurphy

    (@fearghalmurphy)

    Thank you for the quick response. The template I’m editing is

    /business-directory-plugin/themes/default/templates/excerpt_content.tpl.php

    Any guidance is much appreciated, thank you!

    Plugin Support bobbied

    (@bobbied)

    Hi @fearghalmurphy

    I see this ticket is still open. Was the $listing_id what you needed here?

    Please let me know.

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

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