wordpress-plugin

Wordpress: Insert Category & Tags Automatically if They Don't Exist?

My goal is just to use some type of default method for checking if category exist in Wordpress, and if it doesn't, add the category. Same with tags. Here is a mess I made trying to make it happen: <?php if ( is_term( 'football' , 'category' ) ){ } else ( $new_cat = array('cat_name' => 'Football', 'category_description' => 'Footba...

Securing Plugin Data in WordPress From Access by Other Plugins?

There probably is some solution to this, whether it involves code running on just the wordpress installation or a combination of a wordpress installation and a master server I am not sure yet, but please remember not to have tunnel vision and consider any and all possible solutions: The scenario is this: A WordPress plugin (plugin-A) th...

linkWithin widget for wordpress - how it can be positioned?

Hi guys. Does anyone know how to position a widget called linkWithin on the page? By default it's putting it below every post. I want to display it in the sidebar though. Any ideas? ...

Wordpress custom pages CMS

Hi guys, I'm considering Wordpress as my CMS platform for a client site I'm doing at the moment. However, I need to create a couple of custom 'modules'. One of these modules is a form that people will be able to complete and have a quote, and once submitted, in a special place in the Wordpress panel (like a menu or something), there wil...

Building a "lecture notes" website with wordpress

Hi all, I wish to build a "lecture notes" website using wordpress. And would love for any advice on what plugins to use, other considerations to have or website that perform a similar task with WP. The website should have a form that will allow users to upload their lecture files. The results should be a new "post". When submitting ...

overwrite the search function in wordpress (sql and php)

Is there a way to overwrite the default search function in wordpress? I have tried using the filters, but they only allow adding to the query... or possibly rewriting the whole query using posts_request. If I overwrite that though, no other querys will work. I have the following code function my_posts_request_filter($input) { if ( i...

Is there a way to send a blog post to wordpress via an api?

In more details: I want to build a web service to which users register and by browsing my site, users can send blog posts to their own blogs. Initially wordpress.org is discussed. However, I'll be happy to hear solutions for typepad or wordpress.com as well. The ideal solution would be a way for my server to simply "tell" their blog wh...

How to add custom fields in WordPress "Add a New Post" page?

Hello awesome people, I want to add a custom field on Add A New Post page. Like - if I am to make a plugin which will post links to Twitter after a new post is made, I would like to give ability to user to select if he wants to tweet that particular post's link to Twitter. I want to display a check box somewhere in the page which says ...

using WP_Query with custom SQL in wordpress

Hi. I am writing a plugin for wordpress and I want to create my own search. I have tried to alter the wordpress search, but what I am doing is very specific with the SQL query. I am comparing lat and long coordinates and getting posts based on that. I can display posts by using the standard wpdb query, but then I don't get the other fe...

jQuery slider not working in Wordpress plugin

I've written a plugin for wordpress and I want to use a slider on my page. In it's most basic form (now) to test, I have the for the slider on my page <div id="wpge-slider"></div> then in the plugin, I have my init action add_action('init', 'wpge_init' ); function wpge_init() { wp_enqueue_script('jquery'); wp_enqueue_script...

Get Wordpress sidebar from another Wordpress blog?

Hello, I want to write a plugin that will pull a sidebar from one Wordpress blog and place it in the sidebar of another blog. Can someone help me with this, please? I know to write a plugin, but actually dont know where to start with this idea. ...

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 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? ...

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? ...

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...

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...

Problem with images in upload directory after upgrading WordPress to 3.0

I've developed a WordPress plugin and it wordked well from WP 2.0 and up to WP 3.0rc1 (haven't tried rc2) but now with rc3 and milestone 3.0 a strange and irritating error appeared. If you check out my demo page you will se that none of the cover-images is working. they are in the same place as before but they can not be hotlinked or sh...

Wordpress creating plugin for most viewed posts problem?

Hello,I just want to create plugin that will when visitor(user,visitor,...) visit some post,remember what post,and to increment counter of that post,I wrote this code,but sometimes,counter is incremented,even post isn't viewed,or post with other Id is added to a table.Can someone help me with this,please.I know that there are plugins for...

Wordpress e-commerce plugin

Hello! I'm new with this plugin and i wounder if you can list products that has the same variation. For example i have t-shirts with the variation "color" the options are "red, blue, green" and "Sizes" "Large, Medium, Small". I would like to list alla "green" t-shirts that is the size "Small". Would appreciate all kinds of answers. ...