wordpress

License similar to the MIT license but without the ability to sell?

I'm trying to decide how I want to license my Wordpress themes to the public. I know that the GPL is recommended to Wordpress theme creators, however I feel it might not be liberal enough for me because I want businesses to be able to use them if they want to. I really like the MIT license, the only thing that gets me is the freedom to s...

Extracting comment url from wordpress function

Hi everyone. I'm developing some ajax script and using wordpress and my question is: is there a way to extract a comment url from a wordpress function somehow? The function I'm using in the loop looks like that: <?php comments_popup_link('Discuss &#187;', '1 Comment &#187;', '% Comments &#187;'); ?> <?php edit_post_link('Edit', '| ', ''...

Wordpress Drag and Drop Widgets

How can we create a drag and drop widget in word press? I need to create a widget and also I need to drag it on my existing sidebar.Please anybody can give me a spark to go forward. Thanks ...

wordpress 500 - Internal server error

Hello Folks , I installed the wordpress 2.9.2 a few days ago and it works correctly. today , i want to use permlink feature of wordpress. I know , must modify my .htaccess file on my site root. but on my sub-domain root there is no any .htaccess file . so i create my .htacess file with follow content on sub-domain root (near index.php ...

single backend Language or different frontend Language in Wordpress

hi ! is it possible to change the language of my wordpress installation (WP 3.0 Multisite) only in frontend (without editing the .mo/.po files)? changing this option here: does also change my language in backend. any ideas? thanks for helping! ...

Wordpress Redirect on User Edit hook

Hi all, I looked through the Wordpress Hook DB and couldn't find any way to change the page that wordpress redirects to after editing a user... Does anyone know of a hook that will do this, or of another way I could accomplish the same thing? ...

Shared hosting - domain name changing when running scripts.

Hi, I just pointed newdomain.com to a folder(olddomain.com/folder) on my deluxe hosting account with Godaddy. The olddomain.com/folder has a Wordpress installed in it. When using newdomain.com none of the images show up but work when i access the site from olddomain.com/folder. I notice that when I enter the admin section for the Word...

Is there a good question and answer plugin for wordpress?

I'd like to implement a 'stackoverflow' type answer and question for my wordpress blog. Any suggestions? ...

What is "helpx_last_check" from wordpress database

I am a developer who works full time with wordpress and I came across something in my database which I have never seen before. I tried the normal search engine approach and have found nothing. Wondering if the wonderful people of stackoverflow have seen this before. I am pretty sure it isn't harmful. This is the entry in the mysql da...

how to turn off Register_globals in php.ini? hostgator wordpress server.

I am running an ecommerce theme on wordpress on a hostgator server, and coming up with this error. Security warning: set the value *register_globals* in the php ini to Off !! This theme will not work correctly otherwise. I can't find the php.ini in any of the folders. I tried creating a file with the added command and putting it ...

Store global values for use in a wordpress theme

How/Where can I store some values such as a phone number or email address so I can use these values on any page in a my custom theme? Example: I want to store a contact phone number that should be displayed in the header file of my theme but i dont want to hardcode it into the html. I would like to store it in a simerlar way custom valu...

Wordpress Shop Plugin

What Wordpress Plugin is the best For Create a E-Shop ? ...

wordpress plugin development - using images - path not found

I'm writing a plugin for wordpress and am having trouble with images. If I have my plugin in wp-content/plugins/my-plugin/ and in there, a folder images/test.png - how do I reference that image in my code? I don't want to have to put the images in to the theme, as when other users come to get my plugin, the image won't work! so my struc...

Why doesn't this Wordpress $wpdb query work?

Hi, I am doing the following: $type = 'attachment'; $images = $wpdb->get_results($wpdb->prepare(' SELECT p.* FROM wp_%d_posts p WHERE p.post_parent =%d AND p.post_type = "%s" ', $blog_id, $page->ID, $type),OBJECT); var_dump($images); If I remove the line 'AND ...

Wordpress page linking

I am trying to implement WordPress into quite a large site with a complex page structure and struggling to get normal pages to work (not created through the admin) When I link to them, nothing happens, well because... The desired url - www.website.com/dir1/dir2/dir3/page.php The actual url- www.website.com/wp-content/theme...

When it is necessary to use Classes in PHP

Hello, I am a wordpress plugin developer. I saw the source of many pluginsand many plugin use "classes" in them and some without classes. Many huge coded plugins like "wp-postratings" does not use Classes and some small plugins use Classes. edit: Since classes have private, public and protected access specifiers, i feel a taste of s...

How to make a custom template in WordPress work as a password protected page?

I'm building a page with a custom template. The thing is, I need this page to be password protected, or at least accessible to logged in users, but even if I set it as such (Private/Password protected) in the New Pages section in WordPress Administration, it won't display the menu entry nor the content (if Private) or it would show the ...

mod_rewrite to make a short URL

I have a url like: http://skepticalgamer.com/category/slam-the-controller I'd like to strip out "category" from the URL. So I'd want: http://skepticalgamer.com/slam-the-controller to act as if it were the original URL above. Is that something that can be done with mod_rewrite? ...

Add widgets to custom WordPress sidebars on theme activation?

I'm working on a WordPress 3.0 multi-site installation. Each new blog will use the same theme with slight modifications (a custom Thesis install, if it matters). I'm trying to automate the set-up process for each new blog as much as possible. To that end, I'd like to automatically add widgets to my custom sidebars and widget-enabled foo...

how can I post html content to wordpress with xmlrpc?

I've got a script to post some data to wordpress using xmlrpc. If I use a simple string for the body like "This is a test" it works fine. However, if it has any HTML formatting in it, it gets horribly mangled when trying to add the post. How do I post html content to wordpress with xmlrpc? G-Man ...