Notice: Undefined index: in options-framework.php

Most likely you have an undefined array index. You can check if the array index exists with isset() like this: if(isset($some_array[$some_index])){ } So check all your arrays in the options-framework.php file. You can try for example: if ( isset($option[‘type’]) && isset($input[$id]) && has_filter( ‘of_sanitize_’ . $option[‘type’] ) ) { $clean[$id] = apply_filters( ‘of_sanitize_’ . $option[‘type’], … Read more

change the Theme dynamically

Filter pre_option_stylesheet. Sample code, not tested: add_filter( ‘pre_option_stylesheet’, ‘wpse_100854_switch_stylesheet’ ); function wpse_100854_switch_stylesheet( $false ) { if ( empty ( $_GET[‘theme’] ) return $false; $themes = wp_get_themes( array( ‘allowed’ => true ) ); if ( isset ( $themes[ $_GET[‘theme’] ] ) ) return $_GET[‘theme’]; return $false; } The URL should look like example.com/?theme=theme_directory_slug. To change just … Read more

Theme automatically inserting “more” tag on every post

In your archive.php file, you would want to replace this: <div class=”entry-content”> <?php colabs_custom_excerpt(); ?> <p class=”more”> <a href=”https://wordpress.stackexchange.com/questions/105195/<?php the_permalink() ?>”> <?php _e(“More”,”colabsthemes”); ?> </a> </p> With this <div class=”entry-content”> <?php the_excerpt(); // or the_content(); ?> </div><!– .entry-content –> The theme creator is MANUALLY inserting the more button (as you can see). You could just … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)