wordpress-plugin

Simple Regular Expression to return text from Wordpress title - qtranslate plugin

Hello all, I am using qtranslate wordpress plugin to store blog content in multiple languages. Now I need to extract content from qtranslate tags. $post_title = "<!--:en-->English text<!--:--><!--:it-->Italian text<!--:-->"; What would be the php code & regular expression to return text and language from this string? Thanks a lot! ...

Anyone using WP-CodeBox 1.4 with Wordpress 2.8.6

Over the last year or so I tried using WP-CodeBox for a syntax highlighting tool. I downloaded a couple of versions and tried them with a few versions of WordPress. I have never been able to get CodeBox to work. Anyone suggestions? Anyone using this combination or have a similiar story? What did you do? I like the features it offers li...

WP child categories of the parent cat

Hi, I got sidebar list that I want include list of categories in it. What do I need? I need to list child categories of the parent category. Sounds messy? Got categories: Category 1 Sub 1 Sub 2 Sub 3 I want sub categories to be displayed. When selected Sub 1 display Sub 2 and Sub 3, etc. Any suggestions? ...

Automatically generating custom field values in Wordpress

I run a few side blogs that I sort of aggregate into my main blog. I use simplepie to parse the feeds from my other blogs, so the posts are being created automatically. My typical post is layed out like this: IMAGE CONTENT/TEXT HYPERLINK What I'm looking to do is automatically grab the hyperlink, and insert it into a Custom Field. T...

Hierarchical Wordpress page nav with all permalinks in the root

Hi guys, Is there a way to have a hierarchical nav for Wordpress static pages without having the permalinks appear like they're in folders? I.e., I want nav structured like this: + Home + About |- Me |- My Dog ...with permalinks like these: /home, /about, /me, /my-dog. The only way I can find to set up navigation like this through Wo...

Add Comment and Reaction Count in Wordpress with Disqus plugin

Okay I'm trying to add comments and reactions count just like what you would normally see on some wordpress blogs like http://johntwang.com/blog/ where on the left top of each post there is ** comment and * reactions* My problem is I can't find the disqus's documentation, where hopefully there is some method I can call to return me t...

Wordpress plugin API; adding tags (terms) to an object is not working for me, anyone know why?

I'm trying to add a number of tags when a post is saved or added. It should just append if they don't exist and if they already exist for that object just ignore them. This is a short version after hours of looking; something like this is supposed to work I would think, but it doesn't: function generate_tags($id) { $tags = array("te...

Wordpress plug-in to instantly reply to a form?

Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others. The form, after filled in, would: send the content of the form fields to an email address (name:joe, phone number: 555 etc) send an instance response to the email provided ('thanks for your contribution') add email addr...

WordPress Rewrite Plugin Problem

Example Code: function flush_rewrite_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } function activate() { global $wp_rewrite; createRewriteRules( $wp_rewrite ); flush_rewrite_rules(); } function createRewriteRules( $rewrite ) { global $wp_rewrite; $new_rules = array( 'option/(.+)' => 'index.php?o...

markItUp for Wordpress widget

I am using markItUp for a textarea in a WP widget (that is, on widgets.php page, while creating and editing a widget). The textarea is markItUp'ed when I first open the widget, but after I click save the functionality is lost and I am back to a regular textarea. I compared the source code for the before-save and after-save versions of ...

Open an external link in a lightbox in Wordpress

Hi! I would like to open an external link in a lightbox on my Wordpress site. I have tried both the wp-prettyPhoto and Lightbox 2 plugins, but have been unsuccessful so far. I will probably have to use an iframe, but I would prefer not to load it with the page. I would like to be able to click a link, which opens up the iframe in a l...

Wordpress Plugin

Hello, Hope somebody can help me out. I'm trying to use a widget within a plugin in wordpress and I'm seeing this error within the widget box: Warning: extract() [function.extract]: First argument should be an array in /nfs/c03/h04/mnt/57957/domains/rab.qbessi.com/html/wp-content/plugins/register-plus/dash_widget.php on line 24 This...

getting id number from an active wordpress widget's widget_id

I want to get the widget ID of the first widget that belongs to a specific widget class on a Wordpress page. That is, if there are three text widgets available on the page with widget ids widget_text-14, widget_text-2 and widget_text-8 (appearing in this order), I would like to get "14". I tried making use of is_active_widget as part o...

Wordpress Database $wpdb versus get_option()

So I have been developing plugins that create interact and delete to a database by using the get_option functions. I have now seen some tutorials showing how to use the global $wpdb way of getting values from the database. What is the difference between the two, and is one better than the other? ...

Modifying wordpress plugin markup

Is there a 'good working practise' way to modify the markup that a wordpress plugin produces without editing the plugin's core files. The problem i foresee is that when you update the plugin, the markup that you would have modified overwritten. I know in drupal there are template overrides, but i don't know enough about wordpress to do ...

Inserting Wordpress Plugin content to posts

Hi All I am trying to learn more about Wordpress and creating plugins. I have seen an existing plugin use a technique where you can add a 'reference' to it within your posts and WP will parse it and replace it with the plugins own content. The example i am referring to is the NextGen gallery which uses the following code [nextgen id=9]...

plugins for WordPress that allow anonymous users to post entries

Are there any plugins for WordPress that allow users to create blog posts without registering and logging in? ...

How to determine if Wordpress plugin is called from Wordpress widget

I am writing a Wordpress plugin that does string processing whenever 'the_author' filter event is fired. However, some widgets also contain 'the_author' event and subsequently my plugin is fired which should not happen. So I am trying to detect if my plugin is called from certain widgets but so far to no avail. One widget that I would li...

How to make Wordpress plugin first plugin to be run?

Hi Stackoverflowers, I am writing a Wordpress plugin that does string processing whenever 'the_author' filter event is fired. Obviously, there are more plugins that might respond to this event. I know that you can set the priority of your plugin but for example the Disqus plugin is called before my plugin even when I set my priority to ...

Performing wordpress search from a plugin

What's the correct way of performing an article search from within a Wordpress plugin? I want to perform the search and get a list of matching posts and pages back. That is I want the list back in the plugin code for further processing. I keep thinking there should be a function I can call, but I can't find it. ...