Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to use this plugin on my site, unfortunately I'm having to call these short codes in my template files like so:

echo do_shortcode('[catlist id=1]');

However, it doesn't seem to be working like I need it to When I place that code at the top of my template file, it literally just echos out the title of the article. For example I'm running a hearing loss blog, and for my tinnitus category page I place this code in there:

echo do_shortcode('[catlist name=tinnitus]');

and I see this at the top of the category page:

Ringing, Buzzing, or Chirping Sound in Your Ears?
Tinnitus – What IS that Ringing in My Ears??
Constant Ringing in Your Ears?
Dizzy? You’re Not Alone!
Tinnitus: What’s that ringing in my ears?! 

so its just echoing out the titles of the posts at the top of the page...

What am I doing wrong here, and how can I get these short codes to work in my template files?

also, lets say I wanted to do something like this:

$category_id = get_cat_ID('Hearing Aids'); echo do_shortcode('[catlist id='.$category_id.' numberposts=1]');

would something like that work?

I REALLY appreciate any help guys :) Thanks in advance

share|improve this question
    
If that is what your shortcode is echoing I can only assume that that is what the shortcode is designed to echo. Can you post the code for that shortcode's callback function? –  s_ha_dum Feb 21 '13 at 19:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.