You don’t need to create custom php file to do that. Basically, WordPress is for blogging.
You just have to create a Category named Blog and create some post under Blog category and in your folder theme just create category.php to show all your post.
I suggest you to have a look WordPress Template Hierarchy. It helps you to build a custom theme for WordPress.
https://codex.wordpress.org/Template_Hierarchy
Related Posts:
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Change admin bar to default:off
- How to add Color Picker in Theme Options for the following?
- Template for individual post designs
- Theme Review: post thumbnail, header image, content width
- How to determine if a category is empty?
- The seventh parameter passed to add_submenu_page()
- What would happen if the admin installs a plugin when the plugin is included in the theme?
- How do I get my child-theme to work with my theme’s includes folder?
- wp_insert_post breaks rewrite rules
- Where can I find a good reviewed collection of Twenty Ten child themes?
- How wordpress handle upload images and how to use them in the code
- Change loop order via form or link (jquery, not URL)
- how to create theme based widget that can be drop in sider bar or footer
- CSS in child theme not overriding the parent theme [closed]
- Template Hierarchy for get_header()
- Remove frameborder attribute from iframes
- how do I get a sidebar’s id or number for use with is_active_sidebar()
- Looking for the code in twentyten that allows users to select images for the header/banner
- How to test for MU via functions.php?
- List categories and exclude child categories
- Am I supposed to create a child theme for every theme I use?
- WordPress as a data intensive web app
- How to determine which custom header image is being shown
- using wordpress without javascript
- Theme Check: Could not find post_class
- Override theme programmatically
- Set a static front-page as a landing page programmatically
- Custom URL parameters in template files
- How do I remove TinyMCE text format
- can’t understand _e function well
- WP 3.1 upgrade breaks AutoFocus+ theme
- Comment entry screen shows even though “Allow Comments” is unchecked
- Custom WordPress Theme – Search not working on posts
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Change content layout based on menu hierarchy
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- Where to hook settings api init
- Can “Recent Posts” widget be filtered by functions.php?
- attachment.php code or tutorial
- How to filter or remove the “title” attribute from category links
- Change “Thumbnail”, “Medium” and “Large” image sizes using functions.php?
- How to obtain a reference to the_excerpt() from custom loop
- defining a folder location in order to recall it
- Remove CPT slug from URL WordPress
- Custom get_the_excerpt() only works on first post
- JavaScript stops working on selectively refreshed sections one inside the other
- Why doesn’t my css work when I check my theme on mobile devices? [closed]
- How can I add custom text styles to the visual text editor?
- Common single page template options
- Custom Blocks as part of a theme
- How to set up diffrent mobile theme for single site in WordPress?
- Enqueued JavaScript is not working
- What PNG Fix script do you recommend for IE6?
- How to show specific post meta?
- Are seven additional image sizes are too many?
- Show specific category posts on Genesis framework home page
- How to add InnerBlock multiple times in the same block
- How to fix : Uncaught ArgumentCountError: Too few arguments to function? [closed]
- How to clean up the theme for production?
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Theme development – Automatically menu creation
- Questions from a new WP Dev [closed]
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- tiny_mce_before_init: ‘exact’ => true has no effect
- pre_get_comments or the_content filter
- Pagination not working on custom post page
- What might cause a featured image not to display?
- How to conditionally add a wp_filter
- How to set default values for edit_post_link() in my theme?
- Why is the `if else` not working?
- Creating an advanced searchform based on select boxes
- Why WordPress developer still using timthumb and what are advantages using them? [duplicate]
- I don’t think WordPress is loading jquery or bootstrap js
- PHP Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 124
- Show popover with url and option to open in new window
- how use ajax to custom page template
- hide theme files for admin beneath root
- Is it possible to show sort page excerpt in search.php
- How to display home page last modified date in anywhere of wordpress theme?
- Loop is breaking my theme. How can I fix?
- How do you remove the “Your Main Benefit Statement Goes Here.” From one of my pages?
- Error Handling when building WordPress themes
- Show all menu levels except top level. How to exclude top level of a menu?
- Recall translations made with Poedit
- Standard technique for AJAX post endpoint: WP REST or WP API?
- How to achieve this navigation style in wordpress navigation
- How to dowload and edit content of a website
- Uncaught Reference error in Retina.js
- After theme change the menus have to be manually linked to the corresponding theme location
- How Does One Create a Global Variable Repository
- Passing a location-dependent array via wp_localize_script within a shortcode
- Deleting all Options on theme switch
- Retrive posts thumbnail in original size
- Global Navigation menu in diiferrent wordpress setups
- Why do some sites show themes/”themename” as the only theme?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Creating image grid on products page in wordpress
- What is the point of using archive.php instead of index.php?