Display custom fields post based on category

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 11 years, 1 month ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
October 25, 2013 at 12:22 am 9404
Tareq Hasan Hi. I need to display custom fields in posts, but only if these posts are inside certain category. How can I set this in SINGLE.PHP?
October 25, 2013 at 12:06 pm 9428
Tareq Hasan Tareq Hasan

Try using this code:
[php]if ( is_category( 13 ) ) {
echo wpuf_show_custom_fields( ” );
}
[/php]

Replace your category ID in that code, it should work.

Viewing 1 Posts - 1 through 1 (of 1 total)