Using in category
-
Hi, I need to use post-tiles in category.
In order to get the cat number I’m using get_cat_ID
the problem is that I can’t use the shortcode to get the tiles… What am I doing wrong?
Thanx
Taty
<?php
$category_id = get_cat_ID(single_cat_title( ”, false ));
$catnum = ‘post-tiles categories=”‘ . $category_id . ‘” posts=”12″‘;
echo $catnum;
echo do_shortcode(‘[$catnum]’);?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using in category’ is closed to new replies.