You can do this with a plugin, but WordPress already has settings to allow a static front page to exist for the blog. Go in the WordPress Admin screen and look under Settings>Reading and you’ll see that you can set the blog front page to be a single Post/Page that you choose. This will do what you need without making a plugin.
If you’re dead set on making a plugin, here is a useful tutorial on doing this in code: http://mindleaks.com/wordpress-adding-teaser-in-static-front-page-of-thesis-theme/
Related Posts:
- Woocommerce – adding variations to variations [closed]
- Passing a parameter to filter and action functions
- Do deactivated plugins slow down a WordPress site?
- Allow all file types for upload
- Difference between a theme and a plugin?
- Update plugin from personal API
- Change Label for field used in Woo Commerce
- Symlinked plugin directory doesn’t appear in Admin
- Suggest a plugin for up/down voting posts [closed]
- How to disable Gutenberg editor?
- How to install plugins in individual sites on a wordpress network?
- Get Latest Plugin Version from WP API
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- How do I change the description of the same image which is to be found in multiple instances?
- Cron Job not working in plugin
- How to get all attachment image from post ?? WordPress
- How to check if I am displaying categories on a Woocommerce page? [closed]
- What plugin should I use for a basic user signup/login system [closed]
- How to avoid redefining requirejs in plugin when another plugin also uses requirejs
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Review plugin with rating of post [closed]
- Can I use the same textdomain in two separate plugins?
- Displaying Gravity Form data on WordPress page [closed]
- Hook to generate a dynamic sitemap with “All in One SEO Pack” Plugin
- Displaying a Welcome Message to a Woocommerce User
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- Why slash is removed after domain?
- add mediaelement.js plugins into WordPress video player control bar
- MITM risk of not sanitizing?
- WordPress Central User Database
- Why Won’t Exported Blog From One Site Import Into New Site?
- Any built-in function to associate a post to category through a plugin?
- Filtering WooCommerce Orders by Category
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Suggestions on Approach to New Plugin I’m Stuck On
- How to redirect users to their profile after they successfully edit their profile
- Disable Gravatars in WordPress
- Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin
- Integrating jQuery Datatables with Editor into wordpress admin
- Preventing My Plugin From Being Used For Free
- Remove_action from plugin with a Class
- Only allowing some emails to create an account [closed]
- AJAX on Front-End Button Click not working – Custom Plugin
- WordPress Admin Menu defining function is seperate file
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- WordPress Book Exchange Plugin Equivalent?
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- I changed font of wordpress dashboard but it is slow!
- My custom php file keeps 404’ing in WordPress when I call it. What am I missing?
- Return multiple values in a shortcode attribute
- Plugin temporary files and files to download via FTP
- How to extract a .wp-env.json or composer.json containing plugin versions from a production website?
- Search and Filter Plugin – How to disable redirection
- Using $wpdb in a plugin, what sort of data does it return?
- WordPress’s is_plugin_active_for_network function not working for multisites
- Next Previous Post in wordpress with previous / next link with title?
- How to use existing hook in twentytwelve to all theme of wordpress?
- WordPress get the latest plugin installed details
- In wordpress how to sent different email separetly when i click on different email ids [closed]
- After a manual update, themes and plugins that were installed (and still in the directory) are not being seen
- Cannot Access Console
- How to convert a plugin into a function
- Plugin error after installation
- woocommerce remove coupon link does not work
- Remove List Bullets
- How to insert datas in the table on wordpress?
- How to set plugin auto-update Enabled by default?
- I have updated my plugins, though one page of the site has ‘hit a critical error’
- How to translate to spanish wordpress hardcoded content/files?
- Is there a tool to see every WordPress site that’s using a particular plugin?
- what functions to use to resize images and create DB metadata for them after/during upload?
- How to Create a Learning Management Plugin in WordPress to Manage Courses [LMS]
- Overwriting Plugin’s Ajax callback function from theme
- How to disable users to view Other pages
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Can’t find variable is_single in my jQuery plugin
- WordPress Cron function is not working
- How to do rest APi with wordpress
- SSH vs WordPress
- WordPress Dashboard organize posts based on categories
- Find all strings between an enclosing shortcode
- Showing ads in the specific category and its sub-categories
- Plugins upload to wordpress in wampserver via filezilla
- Having trouble initializing wordpress within plugin
- Get content or excerpt of top rated votes @GD-Star Rating? [closed]
- Problem with permissions in wp-content/plugins
- What would cause edit buttons for plugins to disappear?
- Is an Office a custom post type [closed]
- What is the best way to change share image for social networks? [closed]
- Duplicator live to wamp https to http
- Plugin Beauty Contact Popup Form with while loop
- I am experiencing difficulty fulfilling client request
- PHP Creating a formula from mysql db values and db stored math operator
- How often should I execute add_filter and function declaration in Code Snippets?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site