Make WordPress Core

Opened 4 years ago

Closed 4 months ago

#56004 closed defect (bug) (invalid)

Found issue with "post" post type page attribute parent slug not working

Reported by: dipakparmar443's profile dipakparmar443 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.0
Component: Posts, Post Types Keywords: reporter-feedback
Focuses: Cc:

Description

Hello,

Found issue with "post" post type page attribute parent slug not working

Screenshot : https://tinyurl.com/25yqto72

Attachments (1)

Pages-‹-wordpress-—-WordPress.png (228.0 KB) - added by dipakparmar443 4 years ago.

Download all attachments as: .zip

Change History (7)

#1 @dipakparmar443
4 years ago

Last edited 4 years ago by dipakparmar443 (previous) (diff)

#2 follow-up: @ironprogrammer
4 years ago

  • Keywords reporter-feedback added

Hi, @dipakparmar443! Welcome to Trac and thank you for your report!

Would you please provide additional test setup information for this issue? The provided screenshot shows the Posts menu highlighted, but the content frame displays Pages. How did you arrive at this?

Also please note that the post post type is not hierarchical by default, so there are likely other factors and requirements at play. For example, if the site is using a plugin to enable this feature, then it may be more appropriate to file a bug report with the plugin author.

#3 in reply to: ↑ 2 @dipakparmar443
4 years ago

Here is url I want this : http://domain.com/parent-post-slug/child-post-slug

Replying to ironprogrammer:

Hi, @dipakparmar443! Welcome to Trac and thank you for your report!

Would you please provide additional test setup information for this issue? The provided screenshot shows the Posts menu highlighted, but the content frame displays Pages. How did you arrive at this?

Also please note that the post post type is not hierarchical by default, so there are likely other factors and requirements at play. For example, if the site is using a plugin to enable this feature, then it may be more appropriate to file a bug report with the plugin author.

#4 @ironprogrammer
4 years ago

Hi there, @dipakparmar443:

Please refer to the test instructions guidelines in the Test Handbook and provide the steps prior to navigating to the URL in question.

For example, has the default post post type been modified in any way? And if so, how?

Keep in mind that the built-in post post type is designed to be non-hierarchical, whereas the page post type is hierarchical (what your sample URL shows). Custom post types can also be designed as hierarchical.

This ticket was mentioned in Slack in #core by sirlouen. View the logs.


4 months ago

#6 @SirLouen
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The first screenshot is not working anymore, and with the only screenshot available, I cannot really analyze where the problem is. The user wants to do a hierarchical structure with posts, but without additional tweaking, posts don't enable hierarchies parent-child. You could achieve this URL format though, by using categories (with default config, you could obviously enable hierarchy for posts if you need such)

Code is required to see where the issue is, and it is very likely that the problem is in such code. This report is more adequate to be posted in the support forums.

For all of these reasons, plus the fact that no more information has been provided for the past 3 years, I'm going to close this for now.

Note: See TracTickets for help on using tickets.