Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: give $post_id a value
    Thread Starter primestyle

    (@primestyle)

    yeah i tried that too, but I’m going to use it outsite of the loop in the side bar.

    The good news is I found a way, and this could come very handy in many occations using op_star()

    heres how I did it

    <?php
    ob_start();
    the_ID();
    $post_id = ob_get_contents();
    ob_end_clean();
    ?>
Viewing 1 replies (of 1 total)