Losing all my text and entries on ColorWay Theme

And when I need to restore, I do a search replace in the sql file all localhost to that dns… Doing a find/replace in a text dump of the database will break the serialized data stored in theme options. Use interconnectit.com WordPress Serialized PHP Search Replace Tool to correctly find/replace serialized data. Some simple themes … Read more

Theme doesn’t support shortcodes

Your theme has to be removing the shortcodes. Look for remove_shortcode in the theme’s files, probably functions.php. Or remove_all_shortcodes. Or it has to be removing do_shortcodes from the the_content hook. Look for remove_filter(‘the_content’,’do_shortcode’,10). If that doesn’t do it, the theme is probably doing something odd with the post content– like bypassing the normal WordPress functions. … Read more

How to do some action weekly?

Did you try this plugin? http://wordpress.org/extend/plugins/scheduled-post-delete/ //// Sorry for my mistake, I understood you wrong. Try by pasting this in your functions.php: function auto_cat_remove() { global $post; wp_schedule_single_event( time() + 604800, ‘remove_news_cat_event’, array( $post->ID ) ); } function remove_news_cat_func( $post_id ) { global $wpdb; $category_id = get_cat_ID( ‘news’ ); $wpdb->query( $wpdb->prepare( “DELETE FROM $wpdb->term_relationships WHERE … Read more

How to restore file or theme?

download the twentytwelve theme here http://wordpress.org/extend/themes/twentytwelve unpack the files and take the page.php file and upload it to the wp-content/themes/twentytwelve folder overwriting the one that is there

after_setup_theme is called three times

Hooks and filters can have several Actions attached. Hence the $priority argument. In short: It’s just a big multi dimensional array where the key is the hook/filter name and the values are the attached callbacks plus their priority.

Is that a malicious code?

That is most likely a false positive : https://en.wikipedia.org/wiki/Type_I_and_type_II_errors base64_decode is not bad in of itself : https://en.wikipedia.org/wiki/Base64 The plugin is not smart enough to know a legitimate reason to use base64_decode of which there are many.