How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only

Is there a way to limit the creation of pages (custom post type) to a specific depth – e.g. level 1 (where 0 = parent, 1 = child, 2 = grand-child, etc.)? For example, let’s create a ‘Summer’ recipe page (custom post type: Recipe) with a slug ‘/summer’. Let’s now create a ‘Pie’ page (a … Read more

How to display non-hierarchical taxonomy as terms with checkboxes?

I’d like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that’s displayed is similar to the tags – it’s a text field with the auto-suggest. However, I’m more interested in having a flat, non-hierarchical taxonomy … Read more

How to Check if a Page Exists by URL?

I need to display certain content depending on whether or not a page URL exists. I don’t want to check by title, because certain pages will have the same title, and just different parent pages. For example one page may be: http://example.com/analysis/firstNamelastName http://example.com/exercise/firstNamelastName I just need to know if one of these URL exists or … Read more

Custom taxonomy, get_the_terms, listing in order of parent > child

I have a hierarchical custom taxonomy which I can display using print_r(get_the_terms( $post->ID, ‘taxonomic_rank’ ));: Array ( [46] => stdClass Object ( [term_id] => 46 [name] => Aplocheilidae [slug] => aplocheilidae [term_group] => 0 [term_taxonomy_id] => 53 [taxonomy] => taxonomic_ranks Custom taxonomy, get_the_terms, listing in order of parent > child => [parent] => 39 [count] … Read more

Nested custom post types with permalinks

I am trying to set up a multi-level custom post type structure with permalinks that look like authors/books/chapters, with authors, books, and chapters all set up as their own custom post type. For example, a typical URL on this site might look like example.com/authors/stephen-king/the-shining/chapter-3/ Each chapter can only belong to one book, and each book … Read more

Integrating a custom post type into a page hierarchy

I’m creating a theme with a custom post type for team members, I’ve also got the following page structure: about <– this is a page about/team-members <– this is a page, lists all the team members about/team-members/joe-bloggs <– this is a custom post type (team member) entry The third structure here uses the about and … Read more

How can I allow commas in tag names?

I want to allow commas in tag names? For example, “hello, world” or “portland, or” but WordPress keeps separating them. I can do it from the categories page: image http://img839.imageshack.us/img839/6869/picturepp.png And it shows up fine. But anything added from the posts sidebar does not show up ok here: image http://img52.imageshack.us/img52/4950/picture1oax.png There is some discussion on … Read more