[resolved] [Plugin: Magic Fields 2] Insert MF2's code into another plugin PHP script? (2 posts)

  1. databell96
    Posted 4 years ago #

    OK, this is somewhat difficult to explain, but here goes. I'm using Magic Fields 2 and I'm also using GigPress to display tour dates fro various bands for a record label. My issue is in each page I've set up a number that represents an ID for each artist in GigPress. Normall,y I would go into th`e PHP template for that page and use this:

    'artist' => ''3'',

    Now what I'd like to accomplish if for MF2 to use the tag representing the ID number I typed in the page and place it within my code. Something like this:

    'artist' => '' . $artists_gigpress_id . '',

    which doesn't work. I certainly can't add this code either. So what would work here? Anything?

    '<?php echo get('artists_gigpress_id'); ?>',

  2. databell96
    Posted 4 years ago #

    Solved it. This code works:

    'artist' => get('artists_gigpress_id') ,

Topic Closed

This topic has been closed to new replies.

About this Topic