Display Custom Fields already in post

This topic contains 5 reply and 2 voices, and was last updated by Mahi 10 years, 10 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
July 3, 2013 at 1:20 am 5511
Mahi 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}
July 3, 2013 at 3:09 am 5512
Mahi Mahi

May i know your directory theme name ?

July 3, 2013 at 3:43 am 5513
lontanodagliocchi lontanodagliocchi

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

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

July 3, 2013 at 3:51 am 5515
Mahi Mahi

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

check this solution here

July 3, 2013 at 10:45 am 5525
lontanodagliocchi lontanodagliocchi

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!

July 3, 2013 at 12:52 pm 5528
Mahi Mahi

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

Please read above post carefully.

Viewing 5 Posts - 1 through 5 (of 5 total)