Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author the_arv

    (@the_arv)

    It would be possible to amend the date format through family-tree.php. Somewhere around line 91:

    $str .= ‘”Birthday=’.$node->born.'”,’.”\n”;

    I am afraid you will have to figure out the relevant PHP to format $node->born into the format you are looking for.

    The date format will be configurable in a release to be published soon.

    Plugin Author the_arv

    (@the_arv)

    By the way… Thanks for the positive feedback! ??

    Thread Starter mmmmagnus

    (@mmmmagnus)

    Great. Thanks! I will patiently wait for next release.

    If you want to display just the year change this code:

    $str .= '"Birthday='.$node->born.'",'."\n";
     if (!empty($node->died) && $node->died != '-') {
      $str .= '"Deathday='.$node->died.'",'."\n";
     }

    to this code:

    $str .= '"Birthday='.substr($node->born, 0, 4).'",'."\n";
     if (!empty($node->died) && $node->died != '-') {
      $str .= '"Deathday='.substr($node->died, 0, 4).'",'."\n";
     }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Family Tree] Show only year in tree’ is closed to new replies.