Something like this for the category term should work. That’s for the slug you probably want the name.
<?php $terms = get_the_terms( $post->ID, 'category' ); ?>
<?php foreach( $terms as $term ) echo ',' . $term->slug; ?>
The date is pretty simple just follow the documentation
https://developer.wordpress.org/reference/functions/get_the_date/ it has lots of examples at the bottom.
Related Posts:
- Inject post (from specific category) between posts in Loop
- Looking to exclude blog posts from category Previous/Next buttons
- How to display related posts from parent category
- Use template for posts with a particular category grandparent
- how do I get a specific post from a post with a subcategory in WP
- How to show only subcategories in parent category not parent category?
- Get latest post from all categories except one
- Add new post in existing categories using wp_insert_post
- Displaying list of posts in category page
- Do not duplicate posts with multiple categories in multiple loops
- Loading Posts & Category with Ajax
- Pagination at category doesnt work with same name of page
- Trying to show the category of a post in the post display
- Displaying 3 Category Posts differently
- Unable to get Post Category Name and URL
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Display post of specific category on page
- Getting key value of WP_Term object in wordpress
- get_the_content if it contains multiple lines it results in SyntaxError
- Automatic Excerpt Not Working
- Using a javascript file to access a get posts array
- WP Insert Post function – Insert Post Thumbnail
- How to exclude specific category from the get_the_category(); array
- Trying to make php run in a post
- Remove posts after a given amount of time
- Hide wordpress field if data is empty in post!
- combine Code 1 with Code 2
- get post based on category chosen in drop down – The ajax method
- How to show part of the_content?
- How to set a min number of words for a blog post
- Get post id in a function when edit/add a post
- get_template_part based upon post’s category
- Different post styles depending on category
- Loading index.php contents which located outside blog folder for post single page
- get post content of particular post by url
- Display post category in foreach loop
- Define specific category name in PHP
- Category title output before opening title tag
- Include Parent Term in wp_list_categories
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Pagination on Custom Post
- $wpdb returns duplicate posts
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Array to string conversion on array_map
- How to hide posts of a specific custom category in WordPress?
- Do I need to edit my theme in order to change the title of my blog page?
- How do I add more options to the post-new.php page?
- How to change logo by category
- Problem with custom loop and wp_list_pluck [closed]
- Get the id of all images in a post
- Output category list inside array
- Four posts per row [closed]
- Need help removing […] after excerpt
- Define category ID using get_post_meta
- Update value of a associative array with update_post_meta
- How To Pass Array To get_the_category_by_ID() and Get An Array Back?
- Adding wp_list_categories to a specific div that was appended using jQuery
- Pagination in single.php
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Generating 10 000 WordPress posts using PHP and avoiding Server Timeout error
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- Change category thumbnail size
- Post form – AJAX won’t upload featured image – Plugin development
- admin panel – How to remove “delete” button from category editing page
- posts_per_page displays only 2 posts instead of 4 posts
- Get parent category name when only child category is applied to a product
- Multiple Tag Filtering
- Infinite looping next post link within a certain category on a post
- WordPress recent post
- Polylang and template files
- Need to show 7 posts from actual date
- Notice: Undefined variable
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Show subcategory name selected in specific category woocoommerce
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- LinkedIn Share Post Button
- Custom content using in_category
- Get the total Author Favorited posts
- How do I generate formatted permalinks as specified in backend options?
- PHP drop down menu for my get_category child of
- Using Tag Groups: Displaying groups and adjacent tags of current post
- Setting at job with shortcode not working
- Display 6 most recent post on homepage?
- Only Get A Certain Number of Posts From WP_Query
- Need to adjust condition to say if I’m pulling categories from a post, to pull only the first one
- Rearrange get_categories array compared to another array
- How to call post title and post summary to other part of site?
- Insert wordpress tags below posts via functions.php
- Search in particular category in wordpress
- Query seems to be duplicated
- Top menu disapears in Category Pages when filtering using ACF
- Error trying import one category on page
- Add Custom Post Type on the Fly or create an array
- Remove the_content From Loop
- Category List in Theme Options Page
- link to page_for_posts
- How to create a loop that will display one post and stop?
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new