How Can I Create a Separate Page for My Blog Posts? Discover 4 Powerful Methods!

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 13

  • @wpbeginner
    @wpbeginner  10 місяців тому

    ✅ Checkout SeedProd Right Here 👉🏼 www.seedprod.com/

  • @paulroos8517
    @paulroos8517 3 місяці тому

    Wow, why didn't I see this sooner? Thanks for the excellent, energetic tutorial.

    • @wpbeginner
      @wpbeginner  3 місяці тому +1

      It may have taken longer than you expected but happy to hear our guide was helpful!

  • @joukenienhuis6888
    @joukenienhuis6888 Рік тому +2

    A very good tutorial, thank you for such a good explanation. But you are talking very fast and you do not show the pages or posts you already made. That’s what I miss, but it is very clear and very good that you told in the beginning to first watch the video completely.

  • @automaticprojects
    @automaticprojects Рік тому

    Very informative and well-done video.

  • @romenorom
    @romenorom Рік тому

    great video. One question. Which theme did you use in a video?

    • @wpbeginner
      @wpbeginner  Рік тому +1

      Apologies, we forget but you could try the twenty twenty three theme

  • @markuspatzer8658
    @markuspatzer8658 Рік тому

    Another great video from you ! How I setup multiple categories and how make the settings for them? Set it under Readings to Blogs like in your example, all the different categories would have the name blog in the url which is for me not so optimal. I think left the latest post field on reading setup blank.
    Important for me is how to I link back from a single post to the category/ category page? I'm struggling with that in wordpress is there any good plugin for this internal linking?

    • @wpbeginner
      @wpbeginner  Рік тому

      For the links you're wanting, we would recommend taking a look at our article below on breadcrumbs:
      www.wpbeginner.com/wp-tutorials/how-to-display-breadcrumb-navigation-links-in-wordpress/
      If you wanted specific pages for different categories, you would add the categories to your menu and WordPress will generate an archive page similar to your blog page for each category.

  • @user-uh6hl9gw4p
    @user-uh6hl9gw4p 5 місяців тому

    is there a way to only show post from 2024 onwards

    • @wpbeginner
      @wpbeginner  5 місяців тому

      For that you would need to write a custom snippet such as:
      function filter_posts_by_year( $query ) {
      // Check if main query and on the front-end
      if ( $query->is_main_query() && ! is_admin() ) {
      // Set the year to 2024
      $year = 2024;
      // Set the date query to include posts from the specified year and newer
      $date_query = array(
      array(
      'year' => $year,
      'compare' => '>=',
      ),
      );
      // Add the date query to the main query
      $query->set( 'date_query', $date_query );
      }
      }
      add_action( 'pre_get_posts', 'filter_posts_by_year' );