wordpress

Wordpress plugin to notify all users when there is a new comment.

Hi, I was wondering if anyone knew of a plugin that notified all users when an new comment was made. At the moment it only notifies the author of the post. Cheers. ...

WordPress the_date skipping at intervals inside a loop.

I have made a custom loop in WordPress and for some reason, the date is being skipped on random intervals, even though the other post content is getting pulled in successfully every time. Any ideas, because it is completely baffling me! For example, a list of posts and when the date is missing: Date Date No date Date Date No date ...

Code supplied by WordPress breaks my XHTML 1.0 Strict-compliant theme

According to the WordPress wiki pages on developing themes, I have to call wp_head() in the <head> tag so that WordPress can insert some additional HTML code into my theme. Normally this doesn't cause any validation problems, but when I search for something on my custom-themed WordPress blog one of the automatically inserted lines doesn'...

Wordpress - don't show Lightbox on home page. (prototype jquery problem)

Hello I'm using wordpress with Smooth Gallery for showing featured news slider, and i want to use a Lightbox 2 but when the later is loaded the Smooth Gallery is broken becouse of the prototype jquery conflict. How to make Lightbox not show itself at home page? (Slider is only on home page) I tried to change if (!is_admin()) { wp_enq...

wordpress 3.0 php custom fields issue

This worked perfectly in a previous version of wordpress, different site tho. I have a custom field called flash on several wp pages but it keeps defaulting to "printed if results are empty". Any ideas on why this wouldn't work? <?php if ( function_exists('get_post_custom_values') ) { $mykey_values = get_post_custom_values('f...

Wordpress - How do you organize your plugins and themes code ?

Hello, I starting working with WordPress as a CMS, now that the V3 makes it way easier to manage taxonomies and custom post types. My work is mostly focused on developping plugins and themes. My biggest plugin does some admin stuff (add admin menu items and the related pages and features), but also does some importing and exporting, an...

Wordpress Login and Register page help!!!

How to create custom login and register page in wordpress? I want to show the login and register page in the current template itself. Is there anyway to show these pages in the content area of the site? ...

Wordpress Theme -> Custom Nav Menu

I'm pretty new at creating Wordpress themes, and I need some help with the navigation menu. The format for the navigation bar needs to be something like this: <ul id="nav"> <li class="top"><a href="#home" class="top_link"><span>Home</span></a></li> <li class="top"><a href="#page1" class="top_link"><span>My Page</span></a> ...

Wordpress - menu that lists page `lis` and also includes the home page.

I'm new to PHP, trying to find a way to list the pages for my menu and also include index.php Here's what I'm using: <div id="navigation"> <ul> <?php wp_list_pages('sort_column=menu_order&sort_order=desc&title_li=&depth=2&')?> </ul> </div><!-- end id:navigation --> Site can be viewed here: http://www.ho...

Returning number of posts in Wordpress

Hi I need a function to calculate the number of posts in a Wordpress blog that is aware if you are looking at a category, a given tag or the whole blog. I'm keen to avoid rewriting for every different circumstance and want to make sure I get off on a reliable path. Relatively new to Wordpress any help appreciated. Thanks ...

Creating a Dynamic Horizontal Menu

I'm trying to create a horizontal menu in WordPress that can be changed on the fly by non-technical users without editing the theme directly. i.e. The graphics department :). I'm a .net developer and the way I would do this in .net is to create a database with the attributes of the link, and make a user friendly back-end to display the c...

A nonce for each function or one for all AJAX calls?

I'm using nonces as WordPress uses them. It's an extra security measure, a hash that is being sent to the server that changes within ever few hours. If that hash is not there, the request is invalidated. The page I am working on has many AJAX calls (about 20 or so). Right now, I have a difference unique nonce for each one. Is that nece...

Sort the admin area of a Wordpress custom post type by a custom field

It was easy enough to get my custom fields to show up as columns in the wp-admin area of my custom post type but now I need to sort by one of those custom fields. Any ideas? ...

What is the Wordpress Add Video icon supposed to do?

I love Wordpress, and for the most part it is self-explanitory and easy to use. However, the "Add Video" icon on the edit post page seems to be almost completely useless. Here's what I did: Press the "Add Video" button Uploaded a video file from my local machine called ballon.mpg Pressed the "Insert into post" button The result i...

PHP & Wordpress: headers already sent - what to do?

hey guys, i'm working on a wordpress template where files of my ftp get listed. if i click on a file I call d.php (d=download) where i simply pass along the path of the file and I want to force a download with header('Content-Disposition: attachment; filename="'. $file .'"'); This is not working for me, because the browser keeps tell...

Where does WordPress store HTML pages?

I'm new to WP, but I've been experimenting with it and I like it. So, I'm moving my current site--mostly static HTML files--over to WP. My procedure, generally, has been to create new pages in WP & then copy the relevant body HTML from my files to WP. I'm curious, though, where WP stores these pages? Where are the file(s) containing the ...

Wordpress post count per month

I need to run a query in Wordpress to get how many posts there are per month including zeros. My query right now returns the first part of what I am trying to return: select distinct date_format(post_date, '%y') "year", date_format(post_date, '%b') "month", from wp_posts where post_type = 'post' and post_status = 'publish' group by dat...

WordPress: Creating a search form for custom post types

What should I look into if I want to build a form that searches through custom post types, i.e. a completely rebuilt form? Creating the actual form and it's elements is no problem but the next steps brings up a lot of tricky questions such as 1. How can I pass $_GET data to another file maintaining WP's permalinks intact? and 2. How can ...

The purpose of the "role" attribute I see on the theme files.

What is the purpose of the "role" attribute in the WP themes? For example, in the WP3 default theme we have this in footer.php I searched for the string "contentinfo" and found that this is the only occurrence in the default theme folder. What's it's purpose? How is it used? ...

wordpress wp_list_categories problem

I need to make something like wp_list_categories that shows categories that are empty but only if they have children categories that have posts in them. Anyone have any ideas? Thanks ...