Make WordPress Core

Opened 4 years ago

Last modified 13 months ago

#27494 new defect (bug)

Posts page appears into search results

Reported by: SGr33n Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.8.1
Component: Posts, Post Types Keywords: dev-feedback needs-patch
Focuses: Cc:



if you set a static home page, so then a page for posts, this page is just a virtual page, because it doesn't have any content, just the title. But, if you search on the site for this title, the virtual page will be shown as search result. In my opinion this should be hidden.

Change History (4)

#1 @MikeHansenMe
4 years ago

I was able to confirm this. I created a page with the title "customtitle" then added some content to the content area(this would not show if set as posts page). Then I did a search for "customtitle" and it showed in the search results with the excerpt from the content area. This could however be desirable for example if the title was "News" and the content said something like check out all our news articles. Unsure if this is expected or a bug.

#2 @DrewAPicture
3 years ago

  • Keywords dev-feedback added

I think this is relatively valid point, that perhaps the page set for page_on_front should be excluded from search results.

#3 @DrewAPicture
3 years ago

  • Component changed from General to Posts, Post Types

#4 @swissspidy
13 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.