The blog page on my WordPress website is set to be a different page other than the home page. I want to get the link to this blog page from any other pages.
How can I get blog page url?
The simplest way to find your WordPress login URL is to add /admin to the end of your site URL. For example, if your WordPress site is www.mywebsite.com , you can access your login page by visiting www.mywebsite.com/admin .
To activate sharing buttons, navigate to Jetpack → Settings → Sharing. Here, under Sharing buttons, turn on the Add sharing buttons to your posts button. Next, from your WordPress menu, select Settings → Sharing. Under Sharing Buttons, drag the services appropriate to your website into the Enabled Services box.
A blog is an important aspect of virtually any website, to the point that by default, WordPress lists your posts on the home page. However, if you choose to make your home page 'static,' you'll need to find somewhere else for your blog posts to live. Fortunately, WordPress lets you also create a dedicated Posts page.
You can use get_option
of page_for_posts
to get the page ID to either assign it to a variable or to echo it.
<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>
For more information of the default get_option
visit: Option Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With