Ajax Call in page theme not working?

You shouldn’t be including jQuery explicitly. WP ships with a copy and multiple copies tend to mess things up. See wp_enqueue_script(). You shouldn’t be trying to load PHP file inside a theme directly. It won’t load WordPress environment that way (unless it tries to do so explicitly, which is usually very fragile and pretty much … Read more

WordPress plugin won’t create custom tables

dbDelta() is picky– maddeningly picky. You must put each field on its own line in your SQL statement. You must have two spaces between the words PRIMARY KEY and the definition of your primary key. You must use the key word KEY rather than its synonym INDEX and you must include at least one KEY. … Read more

Detect plugin/theme installation (via upload)

I think your best bet here is to hook into the flow at the time of uploading and processing the uploaded file. There is a filter (line 327, file.php): apply_filters( ‘wp_handle_upload’, array( ‘file’ => $new_file, ‘url’ => $url, ‘type’ => $type ), ‘upload’ ); You could create a filter within which you do nothing else … Read more

Change url of posts with keywords

I guess you are using custom post type with custom category is it?If so, then I suggest using this plugin: http://wordpress.org/plugins/custom-post-type-permalinks/ Set it up, go to Settings -> permalink settings and there will be an additional settings called “Permalink Settings for Custom Post types”. Enter something like : /%item%/%postname% If you are not using a … Read more