• graphitewp2

    (@graphitewp2)


    So Im using a form embedded using PHP in single.php (so it appears under ever WP post on front end) to create a custom post as a response to the post, (much like comments appear using a post relationships). I need to update one of the meta values (custom post custom field) with the ID of the post under which the form appears – to link them. Now the fight starts. This is the last straw then this demon is poof…

    ***I somehow just need the “meta value” to return the post ID of the current post – pls definitely see my screenshot***

    For some reason, this is the only way forward and cant use another plugin/setup …

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter graphitewp2

    (@graphitewp2)

    So far Ive tried these parameters and hoped this would pass the information in the form to the meta …:

    $post->ID

    post_id

    $postid
    $post_id

    {$postid}
    {$post_id}

    ID

    These are all not working … do I need to look in the direction of an action hook!?

    Thread Starter graphitewp2

    (@graphitewp2)

    Guys people are contending that functions nor variables may be used in meta values like that.

    Anyone have experience?

    This not working means Ive to start from scratch …

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘newbie amateur learning – Finding post_id for 6 hours now :(’ is closed to new replies.