Using MathJax in text

To create an inline formula in LaTeX we can use single dollar signs $: This formula $x=y+z$ is inline. To display math on its own line, we can use double dollar signs $$: $$ a = b + c $$ Here is an example with Simple Mathjax installed: This will be displayed like this:

Simple form that saves to database

For what I can understand you already have the table in your database. I don’t know how you have named it, but a best practise (for me a must-do practise) is to name it with the same table prefix of wordpress, that’s the one setted in wp-config.php. You also don’t say how this table is … Read more

Coding Challenge – JavaScript Easter Egg

The following plugin dynamically hides the two offending radios using jQuery, and kills revision self-comparisons. <?php # Plugin Name: Pest Control # Plugin URI: http://www.semiologic.com/ # Description: Kills the Easter Bunny # Version: 1.0 # Author: Denis de Bernardy # License: Public Domain class PestControl { public static function bootstrap() { add_action(‘admin_head-revision.php’, array(__CLASS__, ‘mixomatosis’)); add_action(‘load-revision.php’, … Read more

How Does WordPress Uninclude/Deactivate A Plugin?

The active plugins are stored in the ‘active_plugins’ option, like this: array( ‘akismet/akismet.php’, ‘hello-dolly.php’, ); On each page load, WP just loops through that array and includes those files. It’s up to each plugin to include any additional files that it may have. When a plugin is deactivated, it’s just removed from that array. On … Read more

How can I delete options with register_uninstall_hook?

You could always use an uninstall.php file for the plugin instead. http://codex.wordpress.org/Function_Reference/register_uninstall_hook If the plugin can not be written without running code within the plugin, then the plugin should create a file named ‘uninstall.php’ in the base plugin folder. This file will be called, if it exists, during the uninstall process bypassing the uninstall hook. … Read more

Jigoshop and WooCommerce differences

I won’t comment on all features, but I will say take a look through the changelogs for WooCommerce, our blog, and our public GitHub repository to get an idea of the features we’ve added, what we’re currently developing, and the over-all direction we’re taking with WooCommerce. A few of the features we’ve added to our … Read more

Custom Taxonomy in plugin and template

First of all – plugins are for generating content, themes are for displaying it. So really, a plugin shouldn’t do this. But there are grey areas – for example in an ‘events’ related plugin, it would be desirable to display dates, venue etc – things that a WordPress theme wouldn’t normally display. I would suggest … Read more

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