What URL displays all posts in Wordpress?

I just want a link to my blog archives. These are regular posts, but I cannot find the correct URL to add to my menu.

+9
source share
4 answers

right url to add to my menu.

http://yourwebsite.com/?post_type=post

+3
source

You do not have to use a category for each post.

In fact, the file for displaying all messages of any category and date is index.php. You just write "loop" as the code says.

So, if you changed index.php to make it look like a fancy page, not just a mailing list, now you are trying to create another page for this.

So, if you follow me, you are doing it wrong. What you need to do is create a separate page and set it as the main page of your blog. Then it will free the index.php file so that you use it as a blog list, since it is by default.

+1
source
<?php if ( is_front_page() && is_home() ) { // Default homepage echo "Default homepage"; } elseif ( is_front_page()){ echo "Static homepage"; // Static homepage } elseif ( is_home()){ echo "Blog page"; // Blog page } elseif ( is_page( 'cart' ) || is_cart()){ echo "cart"; // Blog page } elseif (is_single()){ echo "is_single"; // Blog page } elseif (is_product_category()){ echo "is_product_category"; } else { echo "Everything else"; // Everything else } ?> 
0
source

Assuming you did it right (as Guilherme mentioned), you should have a page designated as a blog list page.

The URL for the blog list, if you use the My Blog page to display posts and nice links for the URL, should look something like this: http://mywebsite.com/my-blog .

0
source

Source: https://habr.com/ru/post/1412605/


All Articles