Forums

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

  1. cristianocarletti
    Member
    Posted 8 months 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 7 months 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. cristianocarletti
    Member
    Posted 7 months 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. cristianocarletti
    Member
    Posted 7 months ago #

  5. bbestbug
    Member
    Posted 7 months 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. cristianocarletti
    Member
    Posted 7 months ago #

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

  7. bbestbug
    Member
    Posted 7 months ago #

    perfect. thank you!!!

Reply

You must log in to post.

About this Topic