WordPress.org

Ready to get started?Download WordPress

Forums

Getting post ID not working, but does for pages (1 post)

  1. Mike
    Member
    Posted 6 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.