WordPress.org

Ready to get started?Download WordPress

Forums

[plugin] Custom Field Template - Multiple Fields Error? (2 posts)

  1. fldtrace
    Member
    Posted 5 years ago #

    I simply love using custom field template but I encountered a problem when I try to use multiple fields.

    What I try to accomplish, is an image floated to left and text on the right of it.

    The problem is that the fields are not showing up, just the last inserted one. Also, when I try to delete a created field won't delete it in page view.

    I tried with last version of plugin on both 2.7.1 and 2.8 wordpress versions.

    Here is my code:

    custom field setting template:

    [left_portrait]
    type = textarea
    rows = 4
    cols = 20
    mediaButton = true
    multiple = true, startNum = 5, endNum = 10, multipleButton = true
    
    [right_text]
    type = textarea
    rows = 6
    cols = 40
    tinyMCE = true
    multiple = true, startNum = 5, endNum = 10, multipleButton = true

    My simplified loop:

    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post();
    
    			$left_portrait = get_post_meta($post->ID, 'left_portrait', true);
    
    			$right_text = get_post_meta($post->ID, 'right_text', true);
    
    			?>	
    
    <div class="left_portrait"><?php echo$left_portrait ;?></div>
    
                            <div class="right_text"><?php echo$right_text ;?></div>
    
    				<?php endwhile; ?>
    
                    <?php endif; ?>

    Any help here?

  2. fldtrace
    Member
    Posted 5 years ago #

    So nobody knows?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.