Hi,
We have this error when we try get the web: syntax error, unexpected ‘col’ (T_STRING).
https://www.prograr.co.il/
foreach ( $myweek as $wd ) {
$day_name = $initial ? $wp_locale->get_weekday_initial( $wd ) : $wp_locale->get_weekday_abbrev( $wd );
$wd = esc_attr( $wd );
$calendar_output .= "ntt<th scope="col" title="$wd">$day_name</th>";
}
The prolem is in the ** line…
Tnx for help.
remove the two ** from the beginning and the end of the code.
I put them on now for u to know where it’s says the problem
Oh sorry for that. Now I see the problem which is related to the usage of double and single quotes. Change it with this:
$calendar_output .= "ntt<th scope='col' title='$wd'>$day_name</th>";
Or if you want to use the double quotes inside double quotes you can pass them by adding a backslash before each one like this:
$calendar_output .= "ntt<th scope=\"col\" title=\"$wd\">$day_name</th>";
Ok but now he say unexpected ‘>’
echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo( 'name' ), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) . "" />n";
}
I think you have to move the /> inside the double quotes like this:
echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo( 'name' ), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) . "/>n" ;