include custom fields on category page
-
So I am using a boilerplate wordpress theme, and I have a few custom fields on a custom post type. I’m drawing a blank while trying to get those custom fields to appear on my categories page.
On the individual post pages I can simply use:
print_custom_field('overrideJobDesc');
However when I try the same trick in my categories.php page I get nothing. Can someone point me in the right direction?
<?php get_header(); ?> <h1><?php printf( __( 'Category Archives: %s', 'boilerplate' ), '' . single_cat_title( '', false ) . '' ); ?></h1> <?php $category_description = category_description(); if ( ! empty( $category_description ) ) echo '' . $category_description . ''; /* Run the loop for the category page to output the posts. * If you want to overload this in a child theme then include a file * called loop-category.php and that will be used instead. */ get_template_part( 'loop', 'category' ); ?> <?php print_custom_field('overrideJobDesc'); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘include custom fields on category page’ is closed to new replies.