WordPress.org

Ready to get started?Download WordPress

Forums

Hierarchical Custom post type, unique slug (1 post)

  1. thomasvonhassel
    Member
    Posted 3 years ago #

    Here's the problem:

    I have a hierarchical custom post, so if i read the logic correctly only slugs on the same level of the "page" tree are checked for uniqueness.

    But when i try to retrieve a single of these posts (via single-{post_type}.php) it will retrieve all posts matching the slug, regardless where in the tree it's located.

    The nature of the content makes it difficult to avoid the same slug on different levels of the content tree..

    Any tricks to solve this problem ?

Topic Closed

This topic has been closed to new replies.

About this Topic