Using ‘mysqli_connect’ ‘crashes’ WordPress client-side

Firstly, you could and should use wpdb to connect to another database. E.g. like this: $the_other_db = new wpdb( ‘username’, ‘password’, ‘database’, ‘localhost’ ); $results = $the_other_db->get_results( $sql ); Take a look at Using wpdb to connect to a separate database for more information. Secondly, like @AndrewBartel said it’s likely the plugin. Besides IMHO – … Read more

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

Based on your pastebin of the plugin code, the issue seems to be in the registration of the custom post type. The issue is on line 25. “Rewrite” should be set to true. <?php private $postTypeArgs = array( ‘public’ => true, ‘rewrite’=> false, ‘singular_label’ => ‘mydomainlist’, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, … Read more

Migrating Asp.Net site to WordPress site

Migrate site from ASP to WordPress Now a day WordPress is most popular blogging framework. many people are use WordPress for blogging as well as e-commerce application like online shop. using WordPress you can easily manage SEO, Change contain and take your site backup. WordPress framework is user friendly framework and any one can use … Read more

Register Script in Plugin Widget

There are 3 issues. Firstly, you’re calling do_action, triggering the action: do_action( ‘wp_print_footer_scripts’, ‘tab_widget_scripts’ ); When actually, you want to add your function to it, not trigger it. You should be doing this: add_action( ‘wp_print_footer_scripts’, ‘tab_widget_scripts’ ); Secondly, you’re registering this script: tabs Then enqueuing this script: tabs.js Clearly they don’t match, in the same … Read more

How do I override plugin templates and stylesheets?

So long as a plugin / theme doesn’t use the dreaded !important rule in their CSS files, you should be quite alright to include your own CSS, and over-ride their settings. However some very badly written plugins / themes do use the !important rule, which unfortunately makes it difficult or even impossible to over-ride their … Read more

Plugin Development – Functions or Hooks?

Below I’ve included two hooks you could use. There may be better hooks depending on what you’re trying to accomplish exactly but this is what you’ve asked for. At the bottom I’ve listed some helpful resources: Publish Post Hook http://codex.wordpress.org/Plugin_API/Action_Reference/publish_post function published_post( $ID, $post ) { if( $post->post_type == ‘post’ ) { … } if( … Read more