wordpress-plugin

Activate Theme Function In Wordpress

What is the activate theme function in Wordpress? I have found switch_theme but not sure if that is the right function. Is there an activate_theme function that can be used in plugins and for development? ...

Custom hooks in WordPress across plugins

I'm trying to create a hook in one Wordpress plugin that could be used by other plugins. First off, is this even possible? I'm also sending some additional args so this may be 2 questions in one since I've been having trouble finding definitive information on how to do this. Here is what I've tried so far: In the plugin that is creatin...

Wordpress 3.0 and maintenance mode - A Problem

Hi. For some reason it seems that WP3.0 is bugged with everything relate to maintenance-mode. The 2 maintenance-mode plugins (maintenance-mode & wp-maintenance-mode) cause the following problems: wp-maintenance-mode doesn't allow u login as an admin. He just blocks you at the wp-login page. wp-maintenance-mode even doesnt influence ...

Wordpress function returns white screen in plugin

I am brand new at writing Wordpress plugins, so to start I am trying to create a simple one that just modifies a string. I wrote the script a while ago, and know that it functions. But to use it for Wordpress I want to apply it to the post titles. When I replaced the string with the function "get_the_title()" it returns a white screen. I...

Matching duplicate whitespace with preg_replace

I'm writing a WordPress plugin, and one of the features is removing duplicate whitespace. My code looks like this: return preg_replace('/\s\s+/u', ' ', $text, -1, $count); I don't understand why I need the u modifier. I've seen other plugins that use preg_replace and don't need to modify it for Unicode. I believe I have a default in...

Wordpress Ajax blog content

Hi, I am searching a ready Ajax plug-in or to make new one similar to http://benchrismanblog.com/... Can anyone help here with either a wordpress plugin or Ajax/php code to do this. ...

Replace default marker on google geoxml map overlays?

I am pulling georss data from feeds and overlaying them onto my map with Google Maps Geoxml. How do I replace the default markers that appear on these map overlays? Currently they are default blue pins but I would like to remove and replace it with something more appropriate for my theme. I am working on a map for a Wordpress childtheme...

Wordpress: apply_filters & add_action to the_content = EVIL?

I asked this question over in the actual tutorial, but not sure I'll get an answer anytime soon as it's almost 2 months old... so I'll take a gander here... Tutorial is here: Build a WordPress Plugin to Add Author Biographies to your Posts To sum up the tutorial and what the problem is, The tutorial adds an Author Bio on to the end of...

Reduce chances of PHP plugins being malicious

Hey all, I was wondering what steps you use to keep downloaded plugins from being malicious? For example, what does wordpress do to ensure that the plugins you download do not simply execute unlink('/') I'm assuming it partly depends partly on downloader to install plugins to use his or her own discretion, but do plugin systems take m...

Wordpress:Pop NewsLetter Signup box to get user emails

Hi experts, I was looking for a simple pop to say subscribe for newsletter plugin, when a user clicks on a link(not on page load), and its gets, user name with email. Can any body suggest any plugin or have idea how t get is done? Thanks ...

How to link many existing wordpress blogs..

Hi, I have many blogs (private ones) in wordpress on different themes. At the time, I was creating these, I didn't know that using a single email address, I can maintain multiple, so I registered each of these blogs with a different gmail id. Now I want to be able to link in all these, so that when blogging, I can just do a single login...

Migrating from wordpress.com to wordpress -> [googlemaps] and [youtube] shortcode?

Hi, I migrated my blog from wordpress.com to the actual wordpress software. I have [googlemaps] and [youtube] shortcode (think that's the right term) inserted in the pages, yet I can't find the same shortcode plugin that will let me do this. Anyone know where to get it? ...

wordpress posts/content in 2 languages

I'm setting up a wordpress 3 blog and we need to be able to write and manage content/blog posts in two languages. What's the easiest way to accomplish this? Are there any WP3 plugins that make this process possible? The solutions should work on the latest version of wordpress (3.0 right now) and we would like to keep titles/keywords/de...

Wordpress, get links to Custom Content

I have created a custom content and I need to have links that go to the next post. I am currently using this two methods: previous_post_link( '%link', '' . _x( '', 'Previous post link', 'twentyten' ) . ' %title' ); next_post_link( '%link', '%title ' . _x( '', 'Next post link', 'twentyten' ) . '' ); But the problem is these methods ...

Extending Contact Form 7 Wordpress plugin by using hooks.

I would like to create a plugin that uses the contact form 7 hook, wpcf7_admin_after_mail. I want to use the plugin to interface with a CRM system. What I have thus far is the following: //plugin header here function add_to_CRM( $cf7 ) { if (isset($cf7->posted_data["your-message"])) { full_contact($cf7); } else { ...

WordPress plugins search error

I am new to WordPress. I am getting "An Unexpected HTTP Error occurred during the API request." error when I search for plugin in the plugin installation page. Why do I get this error? ...

Is there a plugin to handle "French spacing" in WordPress ?

I migrated from Dotclear (2.2) to WordPress (3.0) a few days ago and I have solved all my problems except one. I have not found a pluging to handle "french spacing". WordPress is better than Dotclear, but since Dotclear is a French project, it manages this correctly. By "french spacing", I mean replacing the space by an insecable space...

Programatically installing & activating Wordpress plugins

Is it possible, somehow to programmatically install plugins? So I can send my client one file they unpack, go to some installplugins.php file and that installs + activates them? Only way I found for doing that is really rancid lowlevel; I'm hoping someone here knows better methods. ...

creating url shortner inside wordpress

hello, i am trying to make short url or even pretty URLs inside my wordpress. suppose, i have a the_content filter that finds all external links inside post content, it needs to return short or pretty urls relative to my site URL. external url: stackoverflow.com/questions/ask pretty url: myblog.com/xyxd making url is not ...

Wordpress plugin for multi level navigation menu's

In drupal, we have http://drupal.org/project/nice_menus to create navigation menu's with multiple levels. Does such a plugin exist for wordpress 3? ...