wordpress

Why is Wordpress $wpdb->query() response 1 when the rows returned is 0

I'm doing the following in a custom function: $exists = $wpdb->query($wpdb->prepare(' SELECT COUNT(*) FROM wp_%d_gdsr_data_article WHERE post_id = %d ', $blog_id, $post_id)); $exists evaluates to 1 even if no rows are returned by the query. Also, var_dump($wpdb->queries) yields a NULL. Anyone know what is going on her...

Exclude category from custom taxonomy output

Hello, I'm using the query below to output all links from a custom taxonomy. It outputs all posts that are tagged 'http' from the taxonomy 'words'. I would like to exclude some general categories from the output. So, fe. it only outputs links in the media and news categories. What would be the best way to achieve this? $wp_query->re...

Wordpress: Create a customized role / user

Hi, I’m farely new to Wordpress but are working on putting a page together which has a very simple purpose. I’m creating it for a customer with little or none IT experience so I want to create a user he can use to login and edit his pages – and nothing more. No settings, no comments, no posts, no links, no nothing, just create, delete a...

Help creating a SQL Query

Somewhat new to SQL queries and I need a little help with my join. I am supplied with gid For each of these I need to grab name from table wp_ngg_gallery then join in table wp_ngg_pictures and grab field filename limit 1 order DESC by field imagedate Anyone able to help? ...

Moving Wordpress from Apache to IIS

I've encountered a problem when moving a Wordpress installation from a Linux Apache server to a Windows IIS server. Nearly all pages load blank, including /wp-admin/. I created a php file in the main directory to check phpinfo, and it loads fine. I've copied the file system over, as well as the database. I've also updated the wp-config....

Is there a way to install IntenseDebate on localhost?

Hi guys, I've been searching for a while now for a solution to install IntenseDebate on my local machine. From what I've seen, there doesn't seem to be anything around that would help me do that. Anyone has had any success installing IntenseDebate on their localhost? Thanks folks, LP ...

Wordpress - related posts by custom taxonomy problem

Hello, I'm trying to display related posts based on a custum taxonomy. I found a query at wordpress.org that kind of works. However the original post gets duplicated in the results multiple times. (words is the name of the custom taxonomy I use) What seems to happen is that the single post gets duplicated according to what amount showpo...

Warning: implode() [function.implode]: on Wordpress page

I just moved a wordpress site from one server to another, and I keep getting this error. Warning: implode() [function.implode]: Invalid arguments passed in /home/finer/public_html/wp-content/themes/barely-corporate/template_portfolio.php on line 41 I have been on the Wordpress support site but couldn't find a solution. Can someone ...

Access denied for user 'root@localhost' (using password:NO)

I'm new to mysql, I'm trying to run Wordpress inmy windows desktop and it need Mysql. I install everything with Web Platform Installer which provided by microsoft. I never seta root password for mysql and in final step of installing wordpressit askfor root password of mysql. What is the default password for root (if there is one) and h...

Cufon delay in WordPress, Mac/Safari/FF...

Using cufon 'manually' not the plugin.... I have a delay on many page loads in Safari and FF on the Cufon enabled headings.... http://www.budewebdesign.com/haf Tried moving Cufon higher up (eg before wp_head() and the plugin code that calls, without any real effect. Some pages no problem but others just a long enough delay to be anno...

Posts is missing in wordpress admin

im my wordpress admin it shows that i have 0 posts, 0 comments, tags, categories etc.. but when i visit the site the posts are there.. ...

Can multiple wordpress's feed off one database?

I am a template designer and I want to create one wordpress with all generic posts, but I don't want to have to keep logging in and copy & pasteing the same wordpress posts everytime. Can I point multiple WP installs to one database? A harder way would be export a master db and importing it to each install. Before I go crazy and try to h...

how to use wordpress upload file/image code in my plugin

hello I am developing a wordpress plugin and I need to have a field where I can upload an image. Since wordpress has a very handly uploader it would be great if I could use that. anyone know if that's possible? Thanks ...

MySQL query against pseudo-key-value pair data in WordPress custom query

I'm writing a custom WordPress query to use some of the data which the Woothemes Diarise theme creates. Diarise is an event planner theme with calendar blah, blah... and uses custom fields to store the event start and end dates in WP custom fields in the *wp_postmeta* table, which implements a key-value store. So for each post in the "ev...

File upload with tdo-miniforms not working

I am using the TDO-miniforms plugin for wordpress. I have a form set up that lets the user submit files. The files are successfully uploaded to the tmp-folder, but once the post is created they are not copied into the allocated post folder. The only thing that is created in the folder with a post id is a file called array. It seems like...

Installing Wordpress on a windows server = omg.

Hello, It's not the first time that i install wordpress on a linux hosting BUT this is the first time i have to do that on a windows server. I upload the latest version on the FTP : go to my www.mydomain.com error 500. okay.... maybe one file is corrupted, i re-upload them... go to my www.mydomain.com : error 500. If I do : www.mydo...

Display Wordpress Category

I want to display only the those parent category name and with their child category.. Example category AAAAA,BBBB,CCCCC,DDDDD Parent category AAAAA having child category a,b,c Parent category BBBB having child category x,y,z Now I want to display only (Result required) AAAAA a,b,c BBBB x,y,z Please help me... ...

wordpress: previous_post_link() / next_post_link() placeholder

I am having trouble with the previous_post_link() and next_post_link() functionality. When there is no previous post, the function previous_post_link() does not display a link, likewise for the next_post_link() and the last post. I would like to have a placeholder image so that the design stays consistent. Currently I have images of gre...

Searching custom taxonomies in wordpress

Want to know is there any plugin/hack available for searching custom taxonomies in wordpress? Directions for any idea will be great. ...

Problem in Installing Wordpress

I try to install Wordpress in a Windows Client with WebPI which provided by Microsoft. Everything installed in my client and finally I saw successful message. with a lunch application link. When I click on it I see following error. Your PHP installation appears to be missing the MySQL extension which is required by WordPress. How Can...