Amesey
Amesey

Reputation: 852

echo html and wordpress php variable in string

I am trying to echo html and php in a string but I get a syntax error with the code below.

                        $post_title .= '

                    <div id="show_neil" class="box five columns" data-target="#member_neil">'.
                    '<h4 class="name">'.

                    '<img src="' . get_bloginfo('template_directory') . '/img/team/neil.png">'.

                    .get_the_title($post_id).

                    '</h4>'.
                    '</div>

                    ';

How do I echo this?

Upvotes: 0

Views: 923

Answers (1)

brance
brance

Reputation: 1178

Try to use get_bloginfo('template_directory') instead of bloginfo('template_directory').

Upvotes: 2

Related Questions