WordPress.org

Ready to get started?Download WordPress

Ideas

CPT Archives in Navigation Menu

  1. Unsal Korkmaz
    Member

    12345

    I simply want to add my public custom post type archive to navigation menu. If i am not missing something, only way to do that is custom links?

    My suggestion:
    Lets say i registered a "product" named custom post type with "has_archive"= true.
    * System can register an undeletable page with "product" slug and label from custom post type as title. So we/clients can use this page as menu item.
    * Basically those archive pages was already acting like normal pages and there is problems happening if we/clients add a page with "product" slug as same slug with custom post type. With this solution, there will be no duplicate problems.

    Posted: 2 years ago #
  2. Diana
    Expert e diva

    12345

    I would create a file archive-product.php also?!

    Posted: 2 years ago #
  3. Unsal Korkmaz
    Member

    12345

    and.. what will you do if client creates a page with "product" slug?

    Posted: 2 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    4 Votes
  • Status

    This idea is under consideration