Create a front page template and separate page for posts?
Use the WordPress Reading settings for your posts page named blog and create a static front-page.php file for your front page in your theme.
Use the WordPress Reading settings for your posts page named blog and create a static front-page.php file for your front page in your theme.
Choose ‘your latest posts’ as to what your homepage should show. This will then show your latest posts on the homepage (aka your blog). Edit: looks like you have this working now!
In the functions.php file I added add_filter( ‘allowed_block_types_all’, ‘func_allowed_block_types’ ); function func_allowed_block_types( $allowed_blocks ) { return array( ‘core/embed’ ); } Then in my plugin I added this JS to the javascript file to enable only the embed blocks I wanted (Twitter, youTube and Vimeo) wp.domReady( function() { const allowedEmbedBlocks = [ ‘twitter’,’youtube’, ‘vimeo’ ]; wp.blocks.getBlockType( … Read more
Create a page with a custom page template, then create a custom WP_Query object to return your last posts. You can get something like: <?php /* Template Name: Blog Page */ get_header(); $args = array( ‘post_type’ => ‘any’, #all post types ‘posts_per_page’ => 10 #get 10 posts ); $query = new WP_Query( $args ); if($query->have_posts()): … Read more
The posts page will always be index.php or home.php. That is, WordPress will always use one of those files to display your blog posts. Even if you set some other page in Settings (like ‘blog’), WP will ignore everything set for that page except the title. See the codex.
There are Conditional Tags for this: is_archive() and is_category() respectively. For a custom post type archives you could use is_post_type_archive(). There are many conditional tags available, see above linked codex page. To determine the blog archive you have to additionally check for the post type post, take a look at this question and the answers … Read more
The first option (/blog/) is the easiest: create a new blank page called “Blog” navigate to “Settings > Reading” and choose this new page as the value in the “Posts Page” drop-down Now, when you navigate to the new “Blog” page (which should be at /blog/ unless there is something unusual about your setup), all … Read more
Either install wordpress in a subdomain (blog.yoursite.com or sub folder (yoursite.com/blog) Design the WordPress site exactly like your current website to get a consistent design. Or make your entire website in WordPress. WordPress can be used for many other things than blogging.
Completely possible. Say you have domain.com. You set up a WordPress installation in domain.com/my-special-page, and you will be able to access your WordPress site there. You can ALSO set it up at domain.com/my-special-page.php if you really want to keep file name extensions, but it’s more work, and an uglier URL, so I wouldn’t recommend.
There is no conditional tag for the blog page. You have to use both is_home() and is_front_page() to detect this page When you use is_home() and is_front_page(), you have to use them in the right order to avoid bugs and to test every user configuration: <?php if ( is_front_page() && is_home() ) { // blog … Read more