Rohin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: domain redirectA plugin ‘Per Post Scripts & Styles’ seems to be the culprit for now. I will check and revert back if the issue re-occurs.
Also is it possible that the issue is caused by a memory issue?
Forum: Fixing WordPress
In reply to: domain redirectNow this is happening at random irrespective of the theme and plugin by the way the website is http://www.thoughtsunbound.com
Forum: Fixing WordPress
In reply to: domain redirectThat is my functions.php file. I am not sure what is the error with it. I am going nuts trying to debug it
Forum: Fixing WordPress
In reply to: domain redirectI created my own theme. I found the issue to be with the functions.php file
<?php /** * simple functions and definitions * The first function, scratch_setup(), sets up the theme by registering support * for various features in WordPress, such as post thumbnails, navigation menus, and the like. * @package rohinbhargava * @subpackage thoughtsunbound * @since scratch 1.0 **/ /** Tell WordPress to run scratch_setup() when the 'after_setup_theme' hook is run. **/ add_action('after_setup_theme','scratch_setup'); if (!function_exists('scratch_setup')) : function scratch_setup() { // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Post Format support. add_theme_support('post-formats', array('aside', 'chat', 'gallery', 'image','link', 'quote', 'status', 'video', 'audio')); // This theme uses post thumbnails if (function_exists('add_theme_support')) { add_theme_support('post- thumbnails'); set_post_thumbnail_size(480, 320, true); } add_image_size('scratch-potrait', 960, 1280, false); add_image_size ('scratch-landscape', 960, 640, false); // Add default posts and comments RSS feed links to head add_theme_support('automatic-feed-links'); //This theme uses wp_nav_menu() in one location. register_nav_menus(array('primary' => __('Primary Navigation','scratch'), )); } endif; $prefix = 'thub_'; global $meta_boxes; $meta_boxes = array(); function scratch_content_nav( $nav_id ) { global $wp_query;?> <nav id="<?php echo $nav_id;?>"> <?php if ( $wp_query->max_num_pages > 1 ) :?> <h3 class="assistive-text"><?php _e('Post navigation', 'scratch');?></h3> <?php next_posts_link(__('<span class="meta-nav nav-previous">← Older posts</span>', 'scratch'));?> <?php previous_posts_link(__('<span class="meta-nav nav-next">Newer posts →</span>', 'scratch'));?> <div class="clear"></div> <?php endif; ?> </nav><!-- #nav-above --> <?php }?> <?php function scratch_post_nav( $nav_id ) { global $wp_query; ?> <nav id="<?php echo $nav_id;?>"> <h3 class="assistive-text"><?php _e('Post navigation', 'scratch');?></h3> <?php previous_post_link( '%link', '<span class="meta-nav nav-previous">←</span> %title' )?> <?php next_post_link( '%link', '<span class="meta-nav nav-next">%title →</span>' )?> <div class="clear"></div> </nav><!-- #nav-above --> <?php } ?>Can you help find the issue with the above content
Forum: Fixing WordPress
In reply to: domain redirectI found that the issue is my theme… every time I activate it and then change anything on my blog or save anything my page redirects to the blank page. I tried the same on my local installation but everything is working fine, not sure what the error is. Any pointers?