home.php
is the file in the WordPress template hierarchy which is used for the posts page. However, after looking at the Twentyseventeen theme code on GitHub, there is no home.php
file provided which means the index.php
will be used instead.
Within index.php
Twentyseventeen then uses get_template_part
to seperate reusable sections of code. The most general of these is the components/post/content.php
which looks to be the file displaying your example above.
You can add your get_field
function call around line 57 of components/post/content.php
and it will display your post metadata.
Related Posts:
- How to update custom fields using the wp_insert_post() function?
- How to add a class to the attachment images
- How to automatically apply woocommerce product title to all product images alt tags?
- Add custom field to attachments in a specific category
- How can update custom meta for all posts
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- New Plugin Review
- Make custom field meta not display if there is not data in it
- Use template for posts with a particular category grandparent
- Query all posts of a custom taxonomy term
- Passing the custom field values in the wp_get_current_user array function
- Get post id in a function when edit/add a post
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Firing schema via code in functions.php doesn’t work
- How can I add extra word in permalink when someone click download button?
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Trying to retrieve post meta
- Redirect to another page using contact form 7? [closed]
- Function works everywhere, how to keep it to execute when creating a new post
- How to check if a PHP string is different than meta field?
- Can’t save php string to a custom field
- Why does this update_post_meta function not delete the custom field itself?
- How to show/hide php table rows based on the content of custom fields
- Pagination on Custom Post
- Get post meta retrieving wrong value
- Custom meta box values are not getting saved for my custom post type
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- WP_Query: getting posts where custom field exists
- WP All Import / Update stock quantity from multiple XML files
- How to use mysql LIKE with wpdb?
- Reading settings in the home page precisely home.php
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- get post id from wp_insert_post for get_template_part
- How to add data to a custom field at the wp_users table?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Unable to render custom field after attempt to generate a list of recent post in page template
- Hide a div when a custom field is empty
- Conditional On custom field plugin metabox
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- remove specificly the last tag in all posts
- Delete images from media library when user deletes an image from ACF Gallery
- Updating Metadata with Shortcode
- How to Send Pingbacks for all Posts in WordPress?
- Products listing check if meta checkbox is checked
- Trying to update Woocommerce meta values
- Is it possible to update the dataset using update_post_meta
- Block error message in foreach loop when looping through ACF field
- Hide a div if the fiels is empty
- posts_per_page displays only 2 posts instead of 4 posts
- Query on a repeater date (acf)
- Extra editor on top of default in Custom Post Type
- Send POST request to Flask app from functions.php file
- How do I get the value of a current user’s custom field?
- How to center all text body in single.php at once?
- Store custom field’s multiple values in one user meta key
- Get field in readable word
- When working with a post, almost all wp_postmeta are deleted
- Getting page / post URL on publish and / or update
- Displaying POST content with HTML tags and all
- remove public static function wp_link_dialog()
- Using Tag Groups: Displaying groups and adjacent tags of current post
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- insert thumbnail image from php script
- Can’t put a hyperlink on Featured Post’s Image
- Weird Behaviour: Not all WordPress Posts appearing
- Published custom posts missing
- WordPress get_post_meta issue
- Insert wordpress tags below posts via functions.php
- Trying to see if page is category or single and displaying title with appropriate heading tag
- How can I create a menu items from meta box based on users input
- Posts sortable column not sorting properly for custom field numbers
- Display a custom field rating system in the front end
- Display custom meta box in my template file
- Query posts by custom fields (object post)
- ACF Date fileds to Age Convert [closed]
- How to modify this function to exclude also the post belonging to a specific category?
- How to display the date under the post title?
- Appending an ACF custom field to the page title
- Add multiple HTML attributes to an Elementor button
- WooCommerce: write featured image dimensions to custom fields in product’
- How do I get a function to work in single.php
- transition_post_status hook, works – but not if the post is new
- How to pass value to add_filter wpcf7_form_tag from another function?
- Custom Admin Menu Report for Specific User ID
- ACF number less than comparison not working
- Cleaning up WordPress to improve performance?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- If Meta Checkbox is checked, do something?
- Getting a specific post values to another div or modal
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Adding a user’s ID behind the tag ref link address
- Show field if it has contents on Advanced Custom Fields
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- Display logged in user name and lastname on page
- How to Add a cutsom slug to my custom author role
- WordPress sorting posts by date and title using a dropdown
- How to output the taxonomies that are assigned to each custom post?
- Enqueue script only on child pages of custom post types
- What is wrong in this code?
- Woocommerce – Shipping tax class based on cart items not using the highest tax available