• Hello,

    I’ve created custom metaboxes for my custom post type and now I’m trying to “process” code from my metaboxes.

    I am using this plugin to display carousels. The user interface creates a string that’s used to generate the carousel, for example :

    [fwdu3dcar preset_id="20" playlist_id="5"]

    My only issue now is that when writing this in my custom field it just displays the raw string instead of showing the carousel. When writing this in the “main” block it does display correctly.

    here’s a bit of my code :

    <?php $carrousel1 = get_post_meta(get_the_ID(), '_choix_1', true); ?>
    <?php echo $carrousel1; ?>

    Well I’m aware echo only displays a string, but I don’t really see with which method I should pass my variable, so it can do something like the “the_content()” method. Any hint? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Process custom fields’ is closed to new replies.