Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: T_STRING error
Форумы портала PHP.SU » » Вопросы новичков » T_STRING error

Страниц (1): [1]
 

1. zachTT - 17 Октября, 2015 - 15:15:53 - перейти к сообщению
добрый день. ужасно стыдно задавать такой нубский вопрос, но все же.
нужна помощь с кодом :
CODE (htmlphp):
скопировать код в буфер обмена
  1. <?php get_header(); ?>
  2. <?php $mts_options = get_option('point'); ?>
  3. <div id="page" class="single">
  4.         <div class="content">
  5.                 <!-- Start Article -->
  6.                 <article class="article">              
  7.                         <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  8.                                 <div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
  9.                                         <div class="single_post">
  10.                                                 <header>
  11.                                                         <!-- Start Title -->
  12.                                                         <h1 class="title single-title"><?php the_title(); ?></h1>
  13.                                                         <!-- End Title -->
  14.                                                         <!-- Start Post Meta -->
  15.                                                         <div class="post-info"><span class="theauthor"><?php the_author_posts_link(); ?></span> | <span class="thetime"><?php the_time( get_option( 'date_format' ) ); ?></span> | <span class="thecategory"><?php the_category(', ') ?></span> | <span class="thecomment"><a href="<?php comments_link(); ?>"><?php comments_number();?></a></span></div>
  16.                                                         <!-- End Post Meta -->
  17.                                                 </header>
  18.                                                 <!-- Start Content -->
  19. <?php echo do_shortcode('[su_tabs]
  20.  [su_tab title="1"]<?php the_field( 'discription' ); ?>[/su_tab]
  21.   [su_tab title="1"] 1 [/su_tab]
  22.   [su_tab title="1"] 1 [/su_tab]
  23. [/su_tabs]'); ?>

выдает ошибку T_STRING в 20 строке. я понимаю, что пытаюсь впихнуть что-то в (''), но не знаю, как правильно это сделать.
2. Faraon-san - 17 Октября, 2015 - 18:36:42 - перейти к сообщению
PHP:
скопировать код в буфер обмена
  1. <?PHP echo do_shortcode('[su_tabs][su_tab title="1"]'.the_field( 'discription' ).'[/su_tab][su_tab title="1"] 1 [/su_tab][su_tab title="1"] 1 [/su_tab][/su_tabs]'); ?>

 

Powered by ExBB FM 1.0 RC1