Home Forums Plugin Support WP User Frontend Pro Display Custom Fields already in post

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Mahi 5 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5511

    lontanodagliocchi
    Participant
    Post count: 2

    Hi!

    i've a (maybe) big problem.
    There is some custom fields already in a lot of posts (i've a directory website).

    How is possible to ‘read' them with wp user frontend?

    Please, help me. I post my single item page code.

    	{if $options['address'] || $options['gpsLatitude'] || $options['telephone'] || $options['titolare'] || $options['email'] || $options['web']}
    		<dl class="item-address">
    			
    			<dt class="title"><h4>Recapiti:</h4></dt> 
    			
    			{if $options['titolare']} 
    		    <dt class="web">Titolare</dt>
    		    <dd class="data">{!$options['titolare']}</dd>
    		    {/if}
    			
    			{if $options['address']}
    		    <dt class="address">Indirizzo:</dt>
    		    <dd class="data">{!$options['address']}</dd>
    		    {/if}
    		     
    		    {if $options['gpsLatitude']}        
    		    <dt class="gps">{__ 'GPS:'}</dt>
    		    <dd class="data">{$options['gpsLatitude']}, {$options['gpsLongitude']}</dd>
    		    {/if}
    		    
    		    {if $options['telephone']}
    		    <dt class="phone">Telefono:</dt>
    		    <dd class="data">{$options['telephone']}</dd>
    		    {/if}
    			
    			  {if $options['telephone']}
    		    <dt class="phone">Fax:</dt>
    		    <dd class="data">{$options['telephone']}</dd>
    		    {/if}
    		    
    		    {if $options['email']}         
    		    <dt class="email">{__ 'Email:'} </dt>
    		    <dd class="data"><a href="mailto:{!$options['email']}">{!$options['email']}</a></dd>
    		    {/if}
    
    		    {if $options['web']} 
    		    <dt class="web">Web</dt>
    		    <dd class="data">{!$options['web']}</dd>
    		    {/if}
    			
    		</dl>
    		{/if}
    #5512

    Mahi
    Member
    Post count: 1555

    May i know your directory theme name ?

    #5513

    lontanodagliocchi
    Participant
    Post count: 2

    Yes Mahi: his name is “Directory” (what a fantasy…)

    http://www.ait-themes.com/wordpress-themes/directory-wordpress-theme/

    #5515

    Mahi
    Member
    Post count: 1555

    aha…. i was guessing right ! one of the most painful theme :p , never mind !

    check this solution here

    #5525

    lontanodagliocchi
    Participant
    Post count: 2

    I've already created more than 600 items, but with this form only title and content are visible in frontend. How i can display also other fields? Plus, now in backend I see two boxes of fields (the ‘old' custom fields for item and the plugin custom fields)… Help me!

    #5528

    Mahi
    Member
    Post count: 1555

    did you put above codes on your wpuf-functions.php file ?

    Please read above post carefully.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Display Custom Fields already in post’ is closed to new replies.