WordPress.org

Ready to get started?Download WordPress

Forums

Create your custom post type tree, parent-child relationship. (7 posts)

  1. Cristiano Carletti
    Member
    Posted 2 years ago #

    You can create your custom post type tree, parent-child relationship whit this plugin:
    http://wordpress.org/extend/plugins/custom-post-type-tree

  2. bbestbug
    Member
    Posted 2 years ago #

    Hi,
    we've got this working and the children are displaying in a sidebar to within a single post page. but we'd like to include links to the actual custom post rather then just the post name?

    do you have sample code that would achieve this?

  3. Cristiano Carletti
    Member
    Posted 2 years ago #

    Hi,
    Sorry I'm late, I've changed my email to respond faster.
    It has example screenshots:
    http://wordpress.org/extend/plugins/custom-post-type-tree/screenshots/
    But I do not know what happened, the images are gone.
    Monday October 17 I will send the samples.
    But further, if you use the array $customPostTypeTree you will have the title, thumbnail and link of custom post.

  4. Cristiano Carletti
    Member
    Posted 2 years ago #

  5. bbestbug
    Member
    Posted 2 years ago #

    Thanks for the screen shots..

    we've added the following code to our page sidebar-overviews.php

    <?php // LEFT SIDEBAR ?>
    <div id="leftsidebar">
      <ul>
      <li><h2>FEATURES</h2>
        <ul>
    
    <ul>
        <?php 
    
    	require_once(WP_PLUGIN_DIR.'/custom-post-type-tree/the_tree.php');
    customPostTypeTree::viewChildren($customPostTypeTree);
    
    	while (have_posts()) : the_post(); ?>
    
    <?php endwhile; ?>

    and the children posts are displaying but only the name. We'd like to be able to include the permalink as well.

    I cant see from the screenshots how we can change this to include the permalinks?

  6. Cristiano Carletti
    Member
    Posted 2 years ago #

    Hi,
    Please update the plugin to version 1.4.
    The children post permalink was added.

  7. bbestbug
    Member
    Posted 2 years ago #

    perfect. thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Topic