WordPress.org

Ready to get started?Download WordPress

Forums

Business Directory Plugin
[resolved] Customization help (3 posts)

  1. viraladmin
    Member
    Posted 1 year ago #

    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).

  2. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    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/

    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.

  3. viraladmin
    Member
    Posted 1 year ago #

    Thank you so very much for your reply. You gve me 100% the answer I needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.