Skip to content

look into using get_the_title() #17

Closed

Description

@willnorris

(This is mostly a note to myself to look into something @misterbisson said to me in an email that's been sitting in my inbox for over a year)

... I really shouldn't be using $object->post_title, rather get_the_title( get_queried_object_id() ). Since different post types can behave differently, even with respect to how a post is titled or how the title is changed on display, that's the most compatible method to get it.

Activity

  1. added a commit that references this issue on Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo