WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: JournalPress] Forcing the display of custom fields on crossposting (2 posts)

  1. Eos Rose
    Member
    Posted 2 years ago #

    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.

  2. Eos Rose
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic