Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get blog page url in WordPress

Tags:

wordpress

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?

like image 413
AceKD Avatar asked Oct 18 '16 05:10

AceKD


People also ask

How do I find my WordPress blog 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 .

How do I share my WordPress blog link?

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.

Is a WordPress page a blog?

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.


1 Answers

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

like image 52
Samir Sheikh Avatar answered Oct 27 '22 12:10

Samir Sheikh