A little do_shortcode() problem
-
Hi. I’m trying to modify the source code of my theme but unfortunately my php-knowledge is too limited to get it right. Would really appreciate some help on hiding the post title.
Here’s what it looks like before I add the shortcode:
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>Here’s what I’ve done:
<?php echo do_shortcode('[CBC country="se" show="n"]' <h2><a href="'.the_permalink().'">'.the_title().'</a></h2> '[/CBC]'); ?>Result —> Parse error: syntax error, unexpected ‘>’
What am I missing?
http://ww.wp.xz.cn/extend/plugins/custom-content-by-country/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘A little do_shortcode() problem’ is closed to new replies.