SEO smart plugin not working for words ending with ä, ö, å

The author is using string functions for single-byte encodings: $url = substr($line, $lastDelimiterPos + 1 ); $keywords = substr($line, 0, $lastDelimiterPos); But in WordPress everything is encoded in UTF-8, a multi-byte encoding. So each time you have a character in your keywords that needs more than one byte, something gets lost. File a bug report … Read more

Adding widgets to header and footer from plugin

Actually including that code in your theme template files is the only surefire way to include those widgets in various themes. It’s also the best to get them where you want them. Alternatively, you could accomplish this using hooks, but that relies on your themes actually calling the hook, and in the proper location. The … Read more

Plugin Handle URL With Custom Theme

Here’s a slimmed-down version of what I usually do. Replace wpse100645 with whatever you want, but be respectful of the fact that you don’t want to interfere with a site’s content. <?php /** * Create a custom path and process code when it gets triggered * * @author Matthew Boynes */ if ( !class_exists( ‘WPSE_100645_Custom_Page’ … Read more

Category’s Description field as editor remove tag

How are you outputting the category description? You might need to use something like apply_filters(‘the_content’, category_description( $category_id )); or wpautop(category_description( $category_id )); to have paragraphs in the output. Edit: Adding what you had in JSFiddle – note where $term->description is, I wrap it in wpautop. See if that works. If not, try apply_filters(‘the_content’, $term->description) instead: … Read more

Theme my Login plugin, how to update fields

The user_register hook only fires when the user first registers. To have the custom profile data show up on the Edit User screen, you should use the edit_user_profile hook (and possibly show_user_profile, if you want users to be able to edit their own custom profile information).

Why Won’t Exported Blog From One Site Import Into New Site?

A lot of people (including myself) have experienced random issues like you describe with this latest version of the WordPress Importer plugin. I recommend using WP Migrate DB. This plugin will not only migrate your content, but allow you to optionally find/replace any serialized URLs (in the event you’re migrating to a different domain as … Read more

How to add equivalent of php include to one page (as plugin?)

Adding a new shortcode requires the following function in your plugin file: add_shortcode( ‘google-cal’, ‘output_calendar’ ); This means that your plugin has a function named output_calendar that is called anytime WordPress sees the shortcode [google-cal] in post or page content. Put your existing code in the output_calendar function. You only need three things in your … Read more

Correct way to perform non-cacheable DB query

I am not completely sure what you are talking about so I will mention the possibilities that come to mind. Maybe this… // Keep track of the last query for debug.. $this->last_query = $query; http://core.trac.wordpress.org/browser/tags/3.5.2/wp-includes/wp-db.php#L1195 … is what you are talking about. If so, your code just runs the flush method which resets $wpdb properties … Read more