Support » Plugins » [Plugin: JournalPress] Forcing the display of custom fields on crossposting

  • Resolved Rose

    (@eos-rose)


    Is there a way to modify this so that I can force some of much custom fields/custom categories to display in the crosspost to my journal. Most of the significant data that I add to each entry goes into a custom field, so right now none of the really important post info is being displayed in my journal posts.

Viewing 1 replies (of 1 total)
  • I managed to add the custom field “Notes” appear by inserting it right before $the_event, like so:

    $jdata['event'] = '<p><b>Notes:</b> '.get_post_meta($p->ID, 'Notes', true).'</p>'.$the_event;
    $jdata['subject'] = apply_filters( 'the_title', $p->post_title );

    Now my issue is that I can’t seem to figure out how to make an “if” statement, so that the string of text I’ve added before $the_event only appears if the “Notes” custom field actually exists.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: JournalPress] Forcing the display of custom fields on crossposting’ is closed to new replies.