Whats the url that displays all posts in wordpress?

I simply want a link to my blog archives. They are just normal posts, but I cannot seem to find the right url for them to add to my menu.

Related posts

Leave a Reply

4 comments

  1. You don’t have to necessarily use a category to every post.

    Actually the file to list all posts of any category and date is the index.php. You just write ‘the loop’ as told on codex.

    So if you changed your index.php to make it as a fancy page and not the post list only, now you’re trying to create another page to do that for you.

    So, if you follow me, you’re doing this the wrong way. What you should do is to create a separate page and assign it as the home page of your blog. It would then free the index.php file for you to use it as the blog list, as it is by default.

  2. <?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
    }  ?>