• Resolved viraladmin

    (@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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customization help’ is closed to new replies.