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

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 13

  • @wpbeginner
    @wpbeginner  9 месяцев назад

    ✅ 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.

    • @wpbeginner
      @wpbeginner  Год назад

      Thank you for your feedback!

  • @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  4 месяца назад

      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' );