The professional approach to add value to your customer offers.

Support


Please give example (on-line, screen-shot, etc.) on any help needed an use code tag ( [code][/code] ) to cap your example of code. Otherwise we we not be able to answer you.

New : Whether it’s a plugin thats causing issues, a theme, or just needed help with styling your site or WPUSPSC…We can help! Live Support for all your WordPress or Prestashop needs! Support provided by Ultra Prod Staff.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Theme s temlate code VS Shortcode
Guest
Pro
Posts: 356
Permalink
Post Theme s temlate code VS Shortcode
on: October 7, 2012, 08:58
Quote

Dear Users,

I really need to find time to improve the template php call, to permit to use all the feature avilable in the shortcode.

But in fact there is a function to use shortcode outide a page/post : do_shortcode .

You can see B1gJ4k3's post in the Wordpress forum.

I actually ended up figuring this out a different way. Here's the code in case any one else has a similar question. It seems to work:

<?php if( get_field('the_price') ) {
	$price = get_field('the_price');
	echo '<div id="price">$' . $price . '</div>';
} ?>

<?php if( get_field('the_colors') ) {
	$colors = implode('|', get_field('the_colors'));

<?php $title = get_the_title(); ?>


Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.021 seconds.

New : Whether it’s a plugin thats causing issues, a theme, or just needed help with styling your site or WPUSPSC…We can help! Live Support for all your WordPress or Prestashop needs! Support provided by Ultra Prod Staff.