[plugin: Archives for a category] using a custom field for cat id
-
Hi,
I am wanting to use a custom field for the category id to be pulled through for this plugin to work, but I am not sure how to structure the code to get it to work.
Any ideas anyone? custom field for the page is catid
This is what I have at the moment (I know it doesnt work).
<?php $catid = get_post_meta($post->ID, 'catid', true); echo wp_get_archives('cat=.$catid&limit=10'); ?>
Thanks in advance!
Stacey
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[plugin: Archives for a category] using a custom field for cat id’ is closed to new replies.