It be better if you have paste the code and not images but here you go:
Correct in index.php
<?php
get_header();
if ( have_posts() ) : ?>
<?php
while ( have_posts() ) : the_post(); ?>
<h2>....
Adding some context to above, the error telling that it found a character that doesn’t belong in that position. line 7
< h2.
This is why You add the closing php tag above. the_post(); ?>
Related Posts:
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- Modular theme settings
- Trigger Customizer saving process with Javascript only
- How to determine the current widget’s parent container (sidebar widget id)
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Is it possible to display the admin bar while in the Theme Customizer?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- How to pass code from header.php to footer.php
- Extend walker – navigation, adding data attribute to a tag
- How to display category specific post content on a page
- Move my theme style.css into a folder
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Is it a good idea to make whole theme widgetized?
- Gutenberg Reusable Block as part of WordPress Theme page
- Why is $GLOBALS[‘content_width’] needed if site is responsive?
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- Does WordPress count as a means to learn web development? [closed]
- current-menu-item class not working
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- Correctly using wp_head()
- A mystery 300px image size
- Cannot figure out how to overwrite files in child theme
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Inheritance of parent theme plugin files in a child theme
- Why is the Page Template dropdown menu using the wrong file name?
- Display a list of certain categories by ID
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- How to append to menu items selectively
- Working with a WP Starter theme
- Child theme enqueue scripts using new functions
- Should I change text-domain of TGM library inside theme?
- tag is being auto inserted
- Custom theme updater – random string in new theme name
- Show woocommerce categories on my theme menu styling
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- How remove render blocking css from wordpress when you build a theme?
- Displaying details of a post in a sidebar
- How to Find the Page the Front Page is Using?
- Multi-page posts: A subdirectory for each post?
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- My jQuery is enqueued properly. So why isn’t it working?
- Database Tables in WordPress Theme
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- 3 Level Deep Navigation Menu Not Showing All Levels
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- Where do files uploaded via Media Manager get stored in MU?
- Random white space before doctype
- How to add menù section to my WordPress template?
- Do I need to create a child theme for JointsWP
- why mytheme/single-product.php works but not mytheme/woocommerce/single-product.php
- customize theme with get_template_part() [closed]
- theme-independent CSS/JS files
- What is the need for the static front page [closed]
- Do translation functions like __e() have to take strings in English in themes?
- Reusable and site-wide content that can be used in a theme
- How to disable WordPress to put P tags?
- CSS preprocessor file messed up after compiled
- $_POSTing to and modifying the WP search results page
- Confused by the behaviour of “front page” / “home” templates
- How to Grab first Image from some Chosen Categories
- Get video from the post on homepage
- matisse theme show excerpts not whole content
- WordPress Themes Directory: Template which hits the standards?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- How to get URL of category of a custom post?
- Is there a plugin for versioning files in the theme (style , .js and .php files)?
- get_avatar() is not working in my custom theme
- Getting post URL within custom content template
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- Updatable theme developing
- Getting unexpected warnings from theme options code
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- makeing a terms of use page that is part of the theme
- Different templates for each category level
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- wp_nav_menu custom walker class
- Using Customizer value in an external PHP file inside a theme
- Changes to template not showing up unless ?reset=1 added to URL
- How to add drop symbol to parent nav items which have child
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- How can I add a single image from a gallery into the page header?
- How to create full header but keep content narrow
- Is there any halfway decent documentation on the wp.media JS class?