WordPress.org

Support

Support » How-To and Troubleshooting » Getting post ID not working, but does for pages

Getting post ID not working, but does for pages

  • Mike

    @jolley_small

    I just updated to latest version of wordpress, but for some reason:

    $post = $wp_query->post;

    No longer gets the $post->ID on posts, but it does on pages.

    Has something changed with single pages relating to post id?

  • The topic ‘Getting post ID not working, but does for pages’ is closed to new replies.
Skip to toolbar