WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by toscho Aug 16 '14 at 18:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the 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