mrpeey
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Homepage only displays posts from one categoryThanks for the quick response and sorry I missed this! For some reason, when I tick that box, I get this error on my page:
// Load our function when hook is set add_action( ‘pre_get_posts’, ‘rc_modify_query_exclude_category’ ); // Create a function to excplude some categories from the main query function rc_modify_query_exclude_category( $query ) { // Check if on frontend and main query is modified if ( ! is_admin() && $query->is_main_query() && ! $query->get( ‘cat’ ) ) { $query->set( ‘cat’, ‘7’ ); } // end if } add_action( ‘genesis_meta’, ‘foodie_home_genesis_meta’ ); /** * Add widget support for home page. * If no widgets active, display the default loop. * * @since 1.0.1 */ function foodie_home_genesis_meta() { if ( is_active_sidebar( ‘home-top’ ) || is_active_sidebar( ‘home-middle’ ) || is_active_sidebar( ‘home-bottom’ ) ) { // Remove the default Genesis loop. remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); // Add a custom loop for the home page. add_action( ‘genesis_loop’, ‘foodie_home_loop_helper’ ); } } /** * Display the home page widgeted sections. * * @since 1.0.0 */ function foodie_home_loop_helper() { // Add the home top section if it has content. if ( is_active_sidebar( ‘home-top’ ) ) { genesis_widget_area( ‘home-top’, array( ‘before’ => ‘
‘, ‘after’ => ‘
‘, ) ); } // Add the home middle section if it has content. if ( is_active_sidebar( ‘home-middle’ ) ) { genesis_widget_area( ‘home-middle’, array( ‘before’ => ‘
‘, ‘after’ => ‘
‘, ) ); } // Add the home bottom section if it has content. if ( is_active_sidebar( ‘home-bottom’ ) ) { genesis_widget_area( ‘home-bottom’, array( ‘before’ => ‘
‘, ‘after’ => ‘
‘, ) ); } } genesis();THANK YOU. I never would have figured that out on my own in a million years.
thank you for the suggestion. Godaddy is not forwarding. Let me know if you have any other ideas. I might just have to rebuild entirely.
*now back to redirecting to my site
I also was getting that error message for a few hours, but it’s not back to redirecting to my old blogspot site.