[wp-trac] [WordPress Trac] #19958: Allow custom post types as "home"

WordPress Trac noreply at wordpress.org
Tue Nov 20 21:22:24 UTC 2012


#19958: Allow custom post types as "home"
----------------------------+------------------------------
 Reporter:  sooskriszta     |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.3.1
 Severity:  major           |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by jpyper):

 I was doing some testing and I think I see a further problem. WP doesn't
 seem to properly handle having a CPT as the front page in some aspects.

 For instance, the url for the front page doesn't get changed to just
 website.com, it's website.com/post-type/post-slug. Same goes for when a
 link to the new "front page" is placed in a menu. Normally the link is
 changed to just be website.com but it keeps it's full URL.

 Part of that problem seems to be in /wp-admin/includes/nav-menu.php about
 line 726. It checks for a post type name of 'page' before changing the url
 out for menus. I haven't found where it does the URL change for the URL of
 the front of the site.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19958#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list