bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Get the ID of the post

(2 posts)
  • Started 9 months ago by darkling235
  • Latest reply from _ck_
  • This topic is not resolved

No tags yet.

  1. darkling235
    Member

    Is there a function I can use to get the post_id? I need to have the post id laid down in the post.php to build an ajax call relevant to that particular post. Can anyone give me an idea?

    Posted 9 months ago #
  2. You can do a global on $bb_post and then access any of the fields from there:

    http://bbshowcase.org/reference/#bb_posts

    so $bb_post->post_id is what you want.

    There's probably an internal function to do the same thing but there's the direct way.

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.