You might try the the_content
filter with the conditional tag is_category()
to append a string to the post content when viewing the category archives :
add_filter( 'the_content', 'custom_the_content' );
function custom_the_content( $content ){
if( is_category() ):
$metastime = get_post_meta( get_the_ID(), 'user_submit_starttime', true );
$metaetime = get_post_meta( get_the_ID(), 'user_submit_endtime' , true );
$metaloc = get_post_meta( get_the_ID(), 'user_submit_location' , true );
$content .= '<a class="metastime">' . $metastime . '</a>';
$content .= '<a class="metaetime">' . $metaetime . '</a>';
$content .= '<a class="metaloc">' . $metaloc . '</a>';
endif;
return $content;
}
Related Posts:
- Order get_terms() By Custom Field
- get_field not displaying my custom field value
- Add extra fields to Add New Category page
- Need help adding custom field to category
- adding custom fields to next and previous post link
- Custom query with category exclusion and post-meta “whitelist”
- Sort category page with custom field
- Create a full width responsive header image per page
- Return category slug / title from category ID
- Filter out posts before display category count
- How to put enctype=”multipart/form-data” in categories form?
- Add custom taxonomy under the category title
- How to call custom category field data in theme?
- query in category.php repeats itself
- need to add custom field in more products
- Retrieving category’s color with get_term_meta
- How to change a post category when the ACF datepicker Field is today
- Listing Texts of Which Custom Field is Null
- How to “group” (categorize) the Pages together?
- How to query categories with Advanced Custom Fields?
- How to add custom color fields to the category edit page?
- Notice: Trying to get property of non-object in : custom fields category
- echo get_post_meta of all post in a category to fill up a select field
- “Virtual category page” based on a custom field filter
- ACF no print data [closed]
- Displaying a custom field in Category Archives
- Assign a custom post to a custom taxonomy based on custom field value
- Custom Fields Value As Taxonomy
- Update custom category fields front-end
- What is the best way to add an advanced / intermediate / beginner tag to a post
- Show posts from category specified using a custom field
- Adding tinymce to Custom Field boxes on Category edit page
- How can i add service category here? [duplicate]
- Sort categories by custom field in WordPress admin
- Modifying category order
- Displaying data from custom fields on a specific category page
- How can I add different custom fields for each category in the same post?
- How to display custom fields as table in Woocommerce
- How to modify custom category field from front end?
- Ajax Category add doesn’t update the list table custom column
- How to Manage and link certain custom taxonomy?
- Custom field picture instead of post thumbnail on category page
- How to loop through a custom field for each post, & display?
- $args Orderby The number
- ACF plugin categories bug in WordPress 3.9
- Logic for Nearby places with post and categories
- Sort categories by meta value
- How to structure Multisite sites into categories?
- Custom Fields to Category edit page, then displaying them in a template correctly
- How do I add and display a custom image field to a category? [duplicate]
- Converting Categories (with ACF fields) to custom taxonomies
- How Do I Add HTML Support to the Additional Category Description Field?
- Add custom text in second paragraph of posts in specific category
- How to list child categories in custom category template?
- Divi change project slug based on category
- Are Custom Taxonomy Templates Possible?
- Remove Categories and Tags from Admin Dashboard
- Custom category link in wp_list_categories()
- Using widget logic I want to show only a widget on the archive page if there are no posts
- Why is this category page limiting the number of posts?
- Show all posts of sub category in a page like: foo.com/category/subcategory/ using UNCODE Theme
- Replace category titles
- 403 forbidden on one page only
- how to remove category from database
- Exclude Posts From Specific Category from Next and Previous post links
- how to query posts and auto assign category if post title has keyword
- How to Add Default Content for all Category Pages Before and After Content?
- Categories in admin interface: can they be collapsible?
- How to append category name to category ID in a form field
- Limit number of posts on a custom category template – breaking pagination
- list categories based on updated posts [closed]
- How to create a subcategory to a PAGE on WP?
- how i can hide some category from author admin panel?
- Display posts from a category
- Finding the category id’s on category intersection pages
- Display sibling categories on category page
- Getting the category title / description returns first matching post?
- I want to know how to output child categories related to parent categories
- Allow user to select categories that will display in post loop
- Echo show_count of categories separately without using wp_list_categories
- Two Sections on Woocommerce Catergory Page [closed]
- How to fetch the highest category in the hierachry for a specific post?
- Woocommerce search form with category select
- Display category title and three latest post inside the category
- Let user select their own category
- Pagination breaks on child-categories, works fine on parent-category
- Is the part “category” fixed to an URL to an archive or post?
- How can I use AJAX with check-box categories?
- List Categories By Specified First Character
- the category city made as a subdomain
- Category name for all posts getting assigned to a single random post
- Displaying Single Product Page Parent and Child Category
- How to create category filter on a blog like on the site below?
- Wrong category in URLs accepted like the correct one
- Style a category page the same way as the homepage?
- How to add an “All” category to the tag cloud?
- Display Taxonomies in loop with template args
- Display only the latest post
- Exclude categories from homepage but not from sidebar
- Exclude Specific Categories?