Support » Plugin: Business Directory Plugin » Customization help

  • Resolved viraladmin


    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 businessdirectoryplugin


    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:


    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.

    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.