wordpress

Limit Amount Of Widgets In Wordpress

I have designed a Wordpress theme and on one of my sidebars there can only be 3 widgets. I need to limit the amount of widgets a user can add to this theme some how. Any ideas? I can use plugins if necessary ...

Wordpress - Skip category page if only one post in category

Hi there, I'm trying to figure out a way of being able to click a link in a sidebar and skip straight to a single page if there is only one post in a category. This is the website I've built for the company I work for. For example. If you click on the "Kings Theatre" link in the sidebar (under "browse by client") it goes to a category p...

Can I have both full text RSS and an excerpt RSS in Wordpress?

I like giving my users the full text RSS feed, but I also have a few sites which pull the RSS feed and link to us from it. They want me to provide the excerpt/blurbs for the articles rather than the full text. Can anyone give me some direction on how to make this happen? ...

Adjusting Wordpress Function to display Parent Category

I am trying to display the classic breadcrumbs on a WP based site. I have the following function, //breadcrumb function function the_breadcrumb() { if (!is_home()) { echo '<a href="'; echo get_option('home'); echo '">'; //bloginfo('name'); echo 'Home'; echo "</a> > "; if (is_category() || is_single...

Trying to make/set up an events calendar in Wordpress & it's not quite what I need

So I've tried a bunch of plugins, to no avail. Wordpress continues to foil me with its default behaviours. Here's what's needed: An events page, which lists the events, and has the time of the event (NOT the time it was posted), location, and an excerpt/blurb/summary a left sidebar of said events page needs to have a calendar which sho...

Wordpress removing WWW

Hello. I've recently set up a wordpress blog and it's removing the www from all URLs. I've disabled all plug-ins, and it still does that. My .htaccess is: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfMo...

Creating an aggregate blog?

I'd like to create a blog similar in style to http://tastespotting.com where the site aggregates content from other blogs and displays them in a thumbnail post which on clicking goes to the specific blog. I'm not sure where to start with this and was wondering if anyone could point me in the right direction. I'm familiar with Wordpres...

WordPress Database Backup Question

I am working on a charity site and was tasked with moving a WordPress site to another host from Yahoo hosting. I have done this before and thought it would be easy enough. Before moving the site I backed up all the files and backed up the database. The files are fine, but the database backup has me stumped. I ended up with the followin...

How to use term_group for ordering subcategories in Wordpress?

I'm looking to customize the order for subcategories listed in a navigation bar in Wordpress. The codex makes it clear that there are five ways to do this: http://codex.wordpress.org/Template_Tags/wp_list_categories#Parameters. I am limited to two: 1) prefixing each category with a number and 2) using term_group. The problem is that th...

Change child text color different from parent text color?

I have a navbar that drops down. The parent text is black, when you hover over the parent text it drops down and shows other categories. The text for the categories is also white, is it possible to change the text color in the drop down category text to say white? The link class looks like this: a:link { color: #000; text-dec...

Generating XML from PHP functions (what am i doing wrong?)

Heres a simple php script that generates some XML: <?php // create doctype $dom = new DOMDocument("1.0"); // display document in browser as plain text header("Content-Type: text/plain"); // create root element $root = $dom->createElement("page"); $dom->appendChild($root); // loop through all posts while (have_posts()) : the_post(); ...

Wordpress Split Archives into 5 sections based on Category and tags

On my site (currently PHP5, wordpress 2.8.5) I have a lot of categories total=150. Each category is a City name ie: Paris, this has a tag associated with this category. ie: Hotel, Sports, Bars, Entertainment, Food total->5 On my Archive page I'm looking to produce a tabbed section based on my tags. ie: tab 1: tag->Hotel-> lists all ...

How to allow self-registration to join a specific Wordpress MU blog.

Hi, I have a Wordpress MU instance installed. I allow self-registration, and self-creation of blogs. I have a user who has created a blog for a Chemistry class. He wants his 100 students to be able to self-register and become authors on this blog. By default, when you follow the Wordpress MU register link, you are signing up for a ...

Allowing .htaccess redirects

I have a Vista machine running Apache 2.2, MySQL and PHP. I'm trying to test a WordPress site that has it's database set up in a test area on the internet. I'm able to access the home page and everything works just fine. But I want to set the Permalinks to use 'Month and name'. This works fine on the test site that is on the internet, bu...

Inserting a post in Wordpress using MySql

Does anyone know how to insert a new post into Wordpress using sql? ...

Wordpress list of authors

How do I get an array or list of users in wordpress? I want to be able to store a new list of authors for permissions for a new plugin I'm working on. ...

How to handle this CSS issue with Wordpress?

I have a (probably not) unique issue with a css background div I am seeking advice on. I am using Wordpress, which creates my pages dynamically. The front page and some other pages are using one type of background (Gradient) while internal pages are using a solid white. Right now I am forced to have two style sheets - main.css for the gr...

Multiple loop working, function inside isn't

Hi all, I'm using this piece of code I found (http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage) to display the first image uploaded to a post on the homepage next to the excerpts of posts. I'm doing this outside the main loop on the homepage, and have been having problems. When I do rewind_posts() to get the same loop r...

How to add a span class in the following php?

I have the following code to display posts in Wordpress <?php wp_get_archives('type=monthly&show_post_count=1'); ?> How can I add a span class around the count so I can style it? The above code produces this: October (9) November (22) December (3) I need to assign a span class to the count, and not entire output. ...

Is it possible to change themes per category in wordpress?

is it possible to change the wordpress theme based on a category? ...