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.
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?
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.
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' );
✅ Checkout SeedProd Right Here 👉🏼 www.seedprod.com/
Wow, why didn't I see this sooner? Thanks for the excellent, energetic tutorial.
It may have taken longer than you expected but happy to hear our guide was helpful!
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.
Thank you for your feedback!
great video. One question. Which theme did you use in a video?
Apologies, we forget but you could try the twenty twenty three theme
Very informative and well-done video.
Glad you found it helpful!
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?
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.
is there a way to only show post from 2024 onwards
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' );