Robin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix itYour homepage is looking ok to me ? can your printscreen where exactly you are saying your
theme’s layout is completely gone
?
Forum: Fixing WordPress
In reply to: Minify breaks my blog's layout and I have no clue how to fix itAlex the best option i had stated was to test out on localhost –
i hope your developer / you backed up the website before moving forward- you can ask him to restore it again .what result do you get when you run the code you showed above ?
Forum: Fixing WordPress
In reply to: Exclude a category from the loopyup- as such both it is working perfectly on my blog -not sure why it gives error on urs -+ fatal error is not even related to this
Forum: Fixing WordPress
In reply to: Exclude a category from the loopif ( !is_front_page() )
just add this instead of
if ( !is_home() || !is_front_page() )Forum: Fixing WordPress
In reply to: Exclude a category from the loopfunction cat_to_exclude($wp_query) { if ( !is_home() || !is_front_page() ) { $wp_query->set('category__not_in', '4'); } return $query; } add_filter('pre_get_posts', 'cat_to_exclude');Can you replace the code again
Forum: Fixing WordPress
In reply to: Exclude a category from the loopwhat does the error say
Forum: Fixing WordPress
In reply to: Exclude a category from the loopfunction cat_to_exclude($wp_query) { if ( !is_home()|| !is_front_page() ) { $wp_query->set('category__not_in', '52'); } return $query; } add_filter('pre_get_posts', 'cat_to_exclude');Forum: Fixing WordPress
In reply to: Exclude a category from the loopif ( !is_home() || !is_front_page() )
Replace the if with the above if
Forum: Fixing WordPress
In reply to: Exclude a category from the loopand how are you calling category-home-page on your homepage ?
Forum: Fixing WordPress
In reply to: Exclude a category from the loop1: There is a post under the photo (which is from category 4 and you want that post to keep displaying)
2:On left side (you are using a widget(?) from which you want to remove that category(4)post)
3:On blog page you want the category 4 to be removedyes?
Forum: Fixing WordPress
In reply to: Exclude a category from the loopcan you give your website link
Forum: Fixing WordPress
In reply to: Exclude a category from the loop52 has to be replaced with your 4 (that was i testing on my blog)
Forum: Fixing WordPress
In reply to: Exclude a category from the looptry this
function cat_to_exclude($wp_query) { if ( !is_home() ) { $wp_query->set('category__not_in', '52'); } return $query; } add_filter('pre_get_posts', 'cat_to_exclude');Forum: Fixing WordPress
In reply to: Exclude a category from the loopfor that you can create a if statement and wrap the function inside
if(!is_home()) { }