return some $ under condition
-
Starting from
return $category.' '.$terms .' ' . __( 'for','sacconicase' ) .' '. $numero .' '. __( 'persons, ','sacconicase' ). $mq . ' m2, ' . __( 'distance from the sea: ','sacconicase' ). $sea . ' m., ' . __( 'distance from the beach: ','sacconicase' ). $beach . ' m., ' . __( 'distance from the center: ','sacconicase' ) . $center . ' m., ' .$content; }
there are some $ that should be printed only if it’s filled the field of a specific $. Let’s do an example:
__( 'distance from the sea: ','sacconicase' ). $sea . ' m., '
Here “distance from the sea” and ” m.,” should be printed only if the field of $ is not empty. This return is inside a shortcode
The page I need help with: [log in to see the link]
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘return some $ under condition’ is closed to new replies.