WordPress.org

Ready to get started?Download WordPress

Forums

WP Family Tree
Use Pages instead of Posts (1 post)

  1. dgdax
    Member
    Posted 2 months ago #

    Hi - first, thank for this plug-in, which is a nice addition to our family website...

    For several reasons, I prefer to have family members as Pages rather than Posts - and for the most part the plug-in handles this fine.

    The only problem is in editing: the drop-down lists to link family members are empty, as they only look for Posts (get_posts() function used in family-tree.php, line 211)

    To cure this, I have appended the condition "&post_type=any" to the query, and this works a treat, i.e.

    line 211: $family = get_posts('category_name='.wpft_options::get_option('family_tree_category_key').'&numberposts=-1&orderby=title&order=asc&post_type=any');

    Any chance of making this a more permanent feature of the plugin?

    https://wordpress.org/plugins/wp-family-tree/

Reply

You must log in to post.

About this Plugin

About this Topic