Title: Customization help
Last modified: August 20, 2016

---

# Customization help

 *  Resolved [viraladmin](https://wordpress.org/support/users/viraladmin/)
 * (@viraladmin)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/customization-help-1/)
 * I am trying to create some custom functions to work with this plugin and I have
   reached a point where I am completely stuck – and its mainly due to the fact 
   I don’t know the ins and outs of how this is programmed.
 * In most wordpress plugins, I can simply create a variable such as follows:
    global
   $wpdb; $pId = $post->ID;
 * However with this plugin, that returns absolutely nothing. I am assuming its 
   because the plugin is creating a custom content type thus my call for post (or
   page) ID is returning nothing.
 * How can I call the current active post id? (I am very new to php but usually 
   manage to hack my way through things with help, so please forgive if this is 
   a ridiculous question).

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

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/customization-help-1/#post-3145686)
 * Hi viraladmin,
 * Not knowing the context in which you’re trying to access the post, I can only
   guess, but if you’re looking to customize the template behavior or the directory
   in general, I’d suggest starting at the FAQ and reading this article here:
 * [http://businessdirectoryplugin.com/support-forum/faq/customizing-bd-to-fit-your-theme/](http://businessdirectoryplugin.com/support-forum/faq/customizing-bd-to-fit-your-theme/)
 * That has a wealth of info about what to do to customize things and how to get
   started. If that’s not what you’re looking for, I can ask my developer a question
   but only if you can further explain your goal and how you’re doing it.
 *  Thread Starter [viraladmin](https://wordpress.org/support/users/viraladmin/)
 * (@viraladmin)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/customization-help-1/#post-3145725)
 * Thank you so very much for your reply. You gve me 100% the answer I needed.

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

The topic ‘Customization help’ is closed to new replies.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [viraladmin](https://wordpress.org/support/users/viraladmin/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/customization-help-1/#post-3145725)
 * Status: resolved