wordpress-plugin

WP: Why does the last line of a sIFR blockquote have double line-height?

Hi, I currently have the following issue: http://img833.imageshack.us/img833/2654/downloadf.jpg I've been tooling around with the CSS but can't get ride of the issue. I think part of the problem is that WP automatically gives out P tags (which I'd also like to retain for usability, i.e. not disabling this in the WYSIWYG), i.e. the fin...

WordPress plugins and problem with magic_quotes_gpc

Hi, I want to write some plugin which adds forms in administration panel and in blog posts. I'm struggling now with magic_quotes. First I've tried to use magic_quotes_gpc as in clear PHP. But it looks like WordPress ignores this flag and always quotes submitted form contents (at least forms in posts, forms in administration panel are no...

Wordpress Custom Field/ Meta Box for a specific Post/Page

I know you can easily add custom meta boxes per post type, but I'm looking to add a custom meta box / custom field for a specific page without getting away from the wordpress 'pages' menu. So for example, when I go to Pages-> Edit 'Home' a box called welcome text shows up. If I edit the page 'About', that box wont show up. Any ideas? ...

How to make Wordpress function example for html header

How to create a simple Wordpress function in functions.php I want to make a function something like custom_header() and the code in the function is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attrib...

Post Method not working with plugin

I am writing 1 plugin for wordpress 3.0. I am adding one metabox for admin panel to Edit Page. I have a Submit Button in that metabox. However, when I use Post method and Submit the page. It doesnt work. Seems like page just get refreshed and it come back. Even Get method doesn't work. I dont want to use GET method, as I have lot of dat...

trying to put a php variable into the code for the "twitter for wordpress" plugin

Hi I am using the 'twitter for wordpress' plugin to display the last tweet in wordpress. it works fine but needs the username for the twitter account harcoded into the line of code: <?php twitter_messages('myaccount', 1, false, false, false, true, true, false); ?> What im trying to do is replace 'myaccount' with a variable ...

Wordpress as cms for different page content per country.

Which plugin to use? I use wordpress as a CMS and was wondering which plugin I could use make 1 page with dynamic content for different selected country/per domain/URL? (I would like to have many versions of the same site where, some pages have common page content while other pages have different page content) ...

Wordpress widget/plugin - content based on text of post(s)/page(s) visible?

I'm new to the Wordpress plugin and widget APIs, but I'm sure this is possible. I'd like to make a plugin or widget that would create links to other posts or external sites based on certain keywords/tags in the content of the given page/post. Is this possible? For example, if a term is in all-caps, link to the Wiktionary definition; i...

how can I change wordpress editor Inset link's Class Names?

Hi how can i add one more class name to wordpress editor insert link style. Any wordpress plugin available for that? ...

What are the basic plugins required for wordpress?

Which are the basic plugins required to manage a website developed WordPress? ...

PHP Variable Scope Issue

I am writing a plugin for WordPress but I can't seem to get my flag going. It is driving me nuts! Here's the code without the class wrapper: static $js_flag; function init() { add_shortcode('jw_html5', array(__CLASS__, 'jw_html5_shortcode')); add_action('init', array(__CLASS__, 'jw_add_js' )); } public function jw_html5_sho...

preg_replace not replacing in a Wordpress plugin

In follow-up to my previous question, I want to replace every instance of an ALL-CAPS* word with a link of the following format: dictionary.com/browse/<TERM> The preg_replace call I am using is this: $content = preg_replace('#[A-Z][A-Z]+#', '<a href="//dictionary.com/browse/$1">$1</a>', $content); Using http://gskinner.com/RegExr, ...

targeting title in wordpress post

Hi, I am working on a wordpress plugin that modifies the title of a post. I only want to do this when I am viewing a single post. To be specific, I want to add a link beside the title, but for purposes of the question, I will be adding some arbitary text. I started out by using the 'the_title' filter hook, and calling this function. fu...

Word Press Plugin Questions

So we just started this website Funny Ride photoss but am having trouble as a wordpress virgin and do not know how to add the auto post photo/comment as an entry as people of walmart does also what else can we change to make the site more user friendly? ...

Is there a way to downgrade any Wordpress plugin after upgrade?

Is there a way to downgrade any Wordpress plugin after upgrade? My client upgraded all plugins and now up-gradation of some plugin creating problem. ...

Making WordPress Plugin Update Process

My client has asked me to make a WordPress Plugin that people must purchase. Therefore, it is not put into the WordPress.org plugin repository and is not updatable by default from the Plugins menu in wp-admin. Is there a best practice way for making the plugin updatable? As in, showing an update on the dashboard, plugin options panel, a...

Export list of pretty permalinks and post title

Looking for a way to export a list of pretty permalinks in wordpress with the corresponding post title. Looking for the actual permalink structure defined not the shortlink. I suppose if I have to I'll use a short link, but I prefer the full permalink. Any suggestions would be helpful. Thanks ...

Wordpress wpdb select from multipe tables

Hi. I have a three tables for my wordpress plugin. videos = id, name playlists = id, name video_playlist = id, video_id, playlist_id how do I get multiple results for multiple tables. ie, I am busy editing a playlist and would like to display all videos in the playlist. so the ID for the playlist you are viewing is passed and that i...

Lightbox not working in my wordpress theme

hi all, i have developed a wordpress theme with header, footer, sidebar, index, page, single and 404.php files. Now i want to add a gallery with lightbox effect to my site. i have tried lightbox plus, WP jQuery Lightbox and a few more plugins but none of them seems to work. Can you please help me..? Its really very urgent.... Thanks ...

wordpress plugins using '&' not '&amp;'

Some Wordpress plugins (one is MapPress which uses Google Maps) use ampersands in their links but do not convert them into the correct HTML character entity: &amp; This invalidates the markup and is very frustrating! Is there any way to convert the & to &amp;? I've searched for a long time and found no solution, but have read a lot o...