• Resolved sbnsaravana

    (@sbnsaravana)


    Hi

    I want to get the post id in single directory list page(it will show individual directory details). Am customized it so giving you the screenshot. incase the link i provided may be not work later. I tried to get post id with global $post method but its not working and i checked hooks atbdp_after_single_listing which is not event triggering. Kindly help to resolve this issue by getting post id in single directory view

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hi @sbnsaravana

    Thank you for reaching out. You can customize the archive page or single listing page by overriding the templates. Please follow the documentation here – Template Override (directorist.com). You can get the listing id by using the following code –

    $listing_id = get_the_ID();

    If you need more help about customization please contact to our support team here – https://prnt.sc/cKSW-z2RTXrs. We will try to help you to achieve what you are looking for.

    Kind Regards

Viewing 1 replies (of 1 total)
  • The topic ‘How to get post id’ is closed to new replies.