Types of custom Wordpress posts with a page as a parent?

I have many custom type elements in my new WP project, and for navigation purposes I want the parent element to be on some of them on the Wordpress page. The problem is that Wordpress does not seem to allow relationships between parents and children between elements with different message types.

Is it possible to override this? I am using Wordpress 3.1

+5
source share
2 answers

What "page" functionality do you need the parent type of post? I assume that you just want to be able to edit the page title and content from the backend.

If so, try the following:

:

<?php $archive_post=get_post(YOUR_CORRESPONDING_PAGE_ID); ?>

<h1 class="entry-title"><?php echo apply_filters("the_title",$archive_post->post_title);?></h1>

<div class="entry-content"><?php echo apply_filters("the_content",$archive_post->post_content);?></div>
+1

[post-type].php single- [post-type].php .

+1

All Articles