global $post->ID id of first search result in searches
|Reported by:||d.busby||Owned by:|
I have written a plugin "aptus" soon to be released to the community, one of it's functions is a breadcrumb navigation generator.
Currently whenever a search is made, upon hitting the search results page the global $post->ID is populated with the ID of the first search result, this in turn goes on to populate the breadcrumb with content as if the user was currently on the first result page.
Currently I am using a work around.
Surely this is a bug?
Shouldn't in the case of searches the $post object return 0?