I had a problem with the tag pagination throwing 404 errors and was forced to integrate a custom query into the 404 page, while fixing the rewrite rules ;)
This is how you force a different HTTP response header with WordPress, in this case a simple HTTP/1.1 200 OK.
1 2 |
$GLOBALS['wp_query']->is_404 = false; status_header( 200 ); |
Some tweaking to add your own classes to the body tag
1 2 3 4 5 6 7 |
add_filter( 'body_class', 'my_class_names' ); function my_class_names( $classes ) { $classes[] = "archive tag " ; return $classes; } |
I am a full-stack developer. My expertise include:
I love programming, design and know my way around server architecture as well. I would never feel complete, with one of these missing.
I have a broad range of interests, that’s why I constantly dive into new technologies and expand my knowledge where ever required. Technologies are evolving fast and I enjoy using the latest.
Apart from that, I am a peace loving guy who tries to have people around him that think the same. I truly believe in the principle: “If you help someone, someone will help you, when you need it."