Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Barry Kooij

    (@barrykooij)

    Hey Alex,

    This is possible, if you’re trying to do this in one of our template parts you’ll need to use $dlm_download instead of $post. So:

    <?php echo get_post_meta($dlm_download->ID, 'author-link', true); ?>

    Good luck!

    Kind Regards,
    Barry Kooij

    Thread Starter Neo1337

    (@eminecraft)

    Hi Barry,

    I try with <?php echo get_post_meta($dlm_download->ID, 'author-link', true); ?> but don’t works.

    Seem to work with follow code: <?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'compatible', true); wp_reset_query();?>

    But only in WordPress posts. In download monitor posts didn’t work…

    I like to use custom fields for each file posts, not in WordPress posts.

    Thanks,
    Alex

    Plugin Contributor Barry Kooij

    (@barrykooij)

    Hey Alex,

    I might have made a typo in my previous response. You could try
    <?php echo get_post_meta($dlm_download->id, 'author-link', true); ?>
    Note I change the capitalized ID to lowercase id.

    I hope this fixes the customization for you but as I stated in another support request I can’t write the actual code for you as this is beyond what we can do in support. If you’re unable to do this customization yourself I’d recommend hiring a developer.

    Kind Regards,

    Barry Kooij

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Fields in templates?’ is closed to new replies.