is your file name is ‘include-nav.php’ or it is placed inside ‘include’ folder ?
if not then simply call it by passing name of nav.php
<?php get_template_part( 'nav' ); ?>
you don’t have to pass include keyword to call template.
Hope this help 🙂
Related Posts:
- how to show all post in my page-grid.php template page
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to create a template for Pages?
- posts not showing on index.php
- Hide a specific post from a page template
- How to identify and hide/remove an element from a WordPress page [closed]
- How to Featured content with images in home page?
- Post/Page Preview Template
- Setting a custom sub-path for blog without using pages?
- How to get Images included in Post
- Display all posts from specific categories on a page
- My ‘post attributes’ is missing from my WordPress install
- posts page – different lengths of excerpt
- Templates & CSS – Proper Programming Practice?
- Forcing oembeds to top of post
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- Passing variables to template parts
- Adding variable to get_template_part
- Including text at the end of every post
- custom single.php not working
- Undefined variable post_id in custom quick edit coloumn
- How to move style from template file to section?
- How to display different single post template based on author?
- How only display all post related to category
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Submitting POST data to a custom page template triggers a 404, why?
- Display page content AFTER a loop of posts
- Different template for posts of all subcategories of category
- Custom Post Templates
- Single post as homepage?
- Templating of a specific post ID
- Creating a Page of Posts
- Dynamically generate child-URLs for posts or custom posts
- Category Template: Need to display different content on first page of archives
- Change post_date to post_modified date on post template?
- What part of template to edit to remove category name from the top of posts?
- how could I load a different template part by page
- How can I pass the ID of a post to a page template by clicking a url?
- How to display posts on a static page? (like search loop)
- Using custom post template
- What is the filter or hook to add admin controls to posts on the front end?
- Setting posts_per_page for taxonomy term template
- Switch to page template when using post permalink
- Genesis + Ajax + Jquery | Failling to call action
- Get Page ID of blog homepage
- Send post id through ajax and get the post content back
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- how to show single post in a custom template
- custom post template file not shown, instead all the time 404.php
- How to create new post content templates for my users?
- How do I stop the loop from repeating in my category template?
- Page template is accessing the incorrect posts?
- Add a variable in a post
- Proper way of establishing custom landing pages in WordPress
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Tell WP to use a specific template file in posts
- How to make different custom post layouts?
- Why won’t pagination work?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- wordpress posts template remove default template from menu
- Force a specific template as default
- showing posts of an specific category in admin custom menu with style of admin posts section
- Custom Articles page only showing a limited number of posts per page
- Give posts a particular template based on the assigned category
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Display a post via template
- Single post full screen template not inheriting WordPress role permission
- How to set a certain Custom Template to a Single Blog Post
- List all native posts in template page?
- Sidebar on single.php not showing up
- Post Templates and Post ID’s
- How do I disable the “by author” hyperlink on posts?
- Find out in which kind of archive am I
- Trying to query all posts in category 4
- Organize template parts and page templates in folders in regards of template hierarchy
- Output Buffer Issue with Single Post View
- add_rewrite_rule and template redirect not working
- WordPress single.php different layouts projects / posts
- Prevent 404 of Author pages without posts
- How do I apply a template to my single posts?
- Custom post type and taxonomy page templates
- How to save template data into wp_post table (post_content column)
- How to create custom post page in WordPress?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- How do I change the template specifically for single posts?
- Related post not showing table of content
- Post not using taxonomy template
- Why does my “Add New Post” page have an old post in it?
- Customizing a new page used for blog posts with Avada theme
- How to show WP admin edit page within template page/post?
- Display a custom 404 page without a redirect
- How do I customize the post page
- Single Sidebar; multiple templates! How?
- I need some explanation on global $post [duplicate]
- How to Display Most View Post in the template file?
- Page Template Drop down disappears when static front page is selected
- Use special template for the first post in the loop