I’m absolutely guessing here, but you may want to put your code between:
<?php if ( get_option('wap8_post_rel') == 'true' ) { locate_template( '/includes/relatedposts.php', true, true ); } ?> // these are your related posts
and
<?php comments_template( '', true ); ?> //these are the comments
Related Posts:
- The proper way to include/require PHP files in WordPress
- Should we use get_template_part() in functions files instead of include_once?
- What is the right way to include a wp-admin file in your theme?
- Should I use include or load_template for including shortcodes, plugins and so on?
- Is it possible to include an HTML flat-file website inside a WordPress theme?
- How can I include custom Gutenberg Blocks in a theme?
- Using require_once for parent-directory not working but is working in sub-directories
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- WordPress Includes mejs 404 error
- How Do I Protect My Premium WordPress App Theme from Copying?
- When to use _e and __ for the translation?
- Get entered value of customiser field for live preview
- With WordPress themes, where do I store the images and files relatively?
- Should `get_template_directory_uri()` be escaped?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- How to disable 3.1 “Admin Bar” via script for the admin user?
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- two tinyMCE editors in the same page
- Separated Comment from Post
- index.php is not loaded for single posts
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- File Security Check in wordpress in index.php of theme
- how to implement wp_is_mobile on themes?
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Check if user has enrolled in Sensei LMS Course on Lesson Page
- Is my approach to enqueue styles inefficient?
- Part of Menu Item Hidden on Header Menu
- Child theme style.css versioning
- Disable front-page.php template
- How do the default themes reference style.css?
- Input ordering in wordpress theme customizer
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- Which file handles the block latest posts, I want to examine excerpt handling
- Should we use ob_start() in WordPress short code
- Menu item added in wp_nav_menu_items filter is never highlighted
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Default string not appearing want to translate
- Using a page as home, how do I prevent nav from setting both home and page links active?
- How do i make a custom section’s setting display the default value in Customizer?
- Warning: A non-numeric value encountered in theme functions.php
- How can I ping update-core.php with a script?
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Set parent theme language with custom .mo files
- Change template if tag selected
- Overide enqueue in non plugable function via child theme
- How to order by multiple date meta_values?
- How to reverse engineer the Twenty Eleven background image uploader?
- Theme Development -> Specific Homepage
- WordPress Theme With Modified View
- How to safely return the HTML?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Javascript development in Custom Themes
- Menu dispareing when visititing current page [closed]
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Allow filtering of loops for all categories
- Hide/disable sidebar using shortcode?
- Where are the options “template” and “current_theme” derived from
- What Can I do To Achieve this Effect: WIP -> Portfolio
- Trying to link to a php template file but its blank
- A Reviews Page is Showing root Index.php instead of Template-Page
- Twentytwenty theme p-tags break em- and strong-tags that span several paragraphs
- Image cropping isn’t working correctly when using Offload Media
- Can any IDE (eg PHPStorm, VS Code) correctly show functions added via require get_template_directory() string results?
- Array for WordPress Avatar Size and Class
- How to show metabox on page if it is using a template
- Mix it up & WordPress
- Template for front page (latest posts)
- How to toggle WP Customizer Panel and Section with JavaScript API?
- is_active_sidebar() problem
- WordPress uploads do not show up and I see the white screen of death in some cases
- How to fix an issue with customizer live preview?
- Code for creating three vertical columns in WordPress Bootstrap theme
- Primary Menu Showing All Pages With No Sub-Nav
- WordPress 3.9 two menus in same position?
- Image load issue with custom page template on Internet Explorer
- Custom widget not appearing on front end
- Theme Development : License help
- show posts in different styling
- Adding custom widgets to theme sidebar on activation
- How to throw the “We need ftp info” at a user
- Undefined index: debuging error for theme option template snippet
- Multiple Content Shortcodes
- Add the ability of changing background color of a theme [closed]
- How to use esc_attr__() function properly to translate a variable that contains string?
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]
- Query for tag given slug
- Image Size wrong during upload