Support » Plugins and Hacks » Automatically setting the post ID

Automatically setting the post ID

  • Hi there,

    I’ve been reading through a few of the support questions as I was looking for the same answer; How to automatically set the Post ID!

    I have come up with the following workaround set into the post template PHP template:

    <?php $currentpost = get_the_ID(); 
    {echo "<a href='http://rhedeg.co.uk/?page_id=7112&gform_post_id=" .$currentpost. "'  >Update post</a>";}

    I hope this helps!


  • The topic ‘Automatically setting the post ID’ is closed to new replies.