• Resolved Fencer04

    (@fencer04)


    I’m trying to use the github code to display the custom PNG image instead of an icon and I can’t get the custom field to show up. I’ve even tried the sample custom field code without without anything related to showing the PNG image and I still don’t see the field.

    Are there any issues with the latest version of the plugin and these filters?

    https://wordpress.org/plugins/timeline-express/

Viewing 1 replies (of 1 total)
  • Thread Starter Fencer04

    (@fencer04)

    I made the following change to line 595 of class.timeline-express.php and the field showed up. The original line was:
    $field_array[] = $custom_fields[$i];

    There appeared to be nothing going on with the $field_array variable other than this. I replaced that line with:

    $announcement_metabox->add_field( array(
         'name' => $custom_fields[$i]['name'],
         'desc' => $custom_fields[$i]['desc'],
         'id'   => $custom_fields[$i]['id'],
         'type' => $custom_fields[$i]['type'],
         'default' => '',
    ) );

    The field is now showing and the timeline-express-custom-icon-html filter is picking up the field and displaying it on the front end.

    I’m not sure if there was an issue with the new version or if I’m doing something unintended here. If I should not be doing this and there is another issue just let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Field Filter and Using PNG Instead of Icon’ is closed to new replies.