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:
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Why does WordPress still not support SFTP?
- Hide wordpress plugins from list
- WordPress plugin from own server
- How to avoid plugin name conflicts from the upgrade notifier?
- Adding unit ammount after WooCommerce price. Example $ 24 /m2 and $24 / m
- How do I only load a plugin js on it’s settings pages?
- Can a plugin cause permanent damage?
- Moving image attachment from post to another?
- Release a plugin with composer installed packages
- Use functionality of 2 wordpress plugins
- Under which circumstances is the .maintenance file not deleted?
- Suggestions for i18n plugin [closed]
- Autoload via composer in plugin interference
- WP-Members redirect if member ALREADY logged in
- Can WordPress plugins “Talk to each other”?
- WordPress plugin form not saving data
- Get a list of galleries from an album in NextGEN Gallery [closed]
- wp_mail attachment not working
- Undefined property: WP_Post_Type::$ID
- Plugin exceeds memory limit
- Plugin Paths Issue
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- How do you export/download the file of an already-installed plugin?
- Woocommerce plugin for minimum order and add-to-card-step
- How to override a plugin function wrapped in a class?
- Load custom PHP on a custom URL via a plugin
- submit posts by unregistered users in wordpress
- WordPress Settings Lost After Site Migration
- How to put JQuery/Ajax inside shortcode?
- Programmatically Process Order through WooCommerce/Stripe Payment Gateway [closed]
- How do I get fresh post data in post_publish hook?
- WordPress Widget Not Saving Data
- Notify comment author upon reply
- WordPress get_avatar function not correct working
- Should I not update the plugin?
- Improving the perfomance of a plugin action
- get main product category list woocommerce
- How do I enforce users to fill a determined custom field using WyPiekacz?
- How do I create a Client Logos section in admin menu?
- Allowed memory size exhausted problem
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- How to keep track of new plugins published on wordpress.org?
- Is this a plug-in in wordpress or a custom JavaScript
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Show icons or badges under title on product archives/category pages
- How to automatically redirect to custom admin menu after plugin activation?
- Readable titles in mobile
- How to get images using taxonomy ( WP Media Folder)
- adding Adsense’s In-Article Ads between images of blog post
- Inserting shortcode in href – any ideas or workarounds?
- Convert to shortcode?
- Disallow: /wp-* in robots.txt?
- Add logo to admin menu in my plugin
- Load CSS files in header of Bones theme?
- Structuring function with registration_errors hook
- Trying to get property of non-object wordpress error message
- Problem with ajax plugin for refreshing posts
- Advertising: Every page refresh counts as 3 ad impressions
- wp_query ‘s’ parameter does not work with WC_AJAX
- Monitor all the queriers executed by my website
- Jquery POST Ajax Return null data in wordpress
- How to get specific column data conditionally in database in WordPress?
- WpForms email notification displays the shortcode as variable instead of value
- How to remove a hook written with $this?
- How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?
- Changing author slug for a custom role without using plugin
- How can I mass-open/edit all WordPress posts & pages?
- Notice: unserialize(): Error at offset 0 of 1 bytes in plugin Accordion on WordPress
- updraft plus migrator problem [duplicate]
- How can I refresh the plugins cache manually?
- Need woocommerce function for getting cart list with items
- WPNeo Stripe connect does not work
- How can I customize Easy Appointment plugin?
- Allowing Comments on Posts
- how to add custom css at top above all css file for specific url
- Creating Custom Hook for my plugin
- Include post_date in search
- Web Application Framework Compatibility with WP Plugin
- Plugin loaded, but not running
- Merge custom plugins in one folder
- Showpost and last
- How to install wordpress theme’s plug-ins?
- Filter EVERY category link with my plugin
- [Custom field template plugin] Upload limited to 20 inputs file
- Undefined variable _POST
- Display Facebook photo albums and photo comments?
- custom registration form [duplicate]
- Website keeps going down, is it a plugin, database, memory problem, or something else?
- Woocommerce resize existing product images
- How to create load more button without a plugin?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- How can I view the responses of contact forms on different sites in one panel or elsewhere? [duplicate]
- Page with redirect
- WordPress Paypal Error “Authentication with PayPal failed: Could not create token.”
- Convert WordPress into Event and membership managment software [closed]
- refresh media library item
- Similar hook to ‘init’ for when plugin page loads
- Elementor wp_register_script showing file when i not use ‘wp_enqueue_script’