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

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

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

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

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

  • @paulroos8517
    @paulroos8517 6 месяцев назад

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

    • @wpbeginner
      @wpbeginner  6 месяцев назад +1

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

  • @joukenienhuis6888
    @joukenienhuis6888 2 года назад +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  2 года назад

      Thank you for your feedback!

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

    Very informative and well-done video.

  • @romenorom
    @romenorom 2 года назад

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

    • @wpbeginner
      @wpbeginner  2 года назад +1

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

  • @markus8658-s2d
    @markus8658-s2d Год назад

    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.

  • @SarahKazmi-q4v
    @SarahKazmi-q4v 8 месяцев назад

    is there a way to only show post from 2024 onwards

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

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