wordpress-theming

WordPress - How to know if a sidebar is empty without loading it?

I'm trying to wrap the sidebar by a DIV, and if the sidebar is empty the DIV should not be displayed But i cannot use codes like if(dynamic_sidebar(1)) { echo '<div>'; dynamic_sidebar(1); echo '</div>'; } as it will load the sidebar before the DIV if it is not empty, any ideas? ...

wordpress mu theme per-user options

Is it possible to add an options screen to a Wordpress MU theme (options being saved for each user, so blogwide, not sitewide) ? I'm used to program wordpress themes, but i'm a bit puzzled as to how make customization happen in a multi-user environment... ...

WordPress front page (homepage) fails to redirect when static front page is set.

I have configured WordPress to display a static front page as described here: http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings When I save changes and try to visit my front page, my browser displays the following error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the req...

How do I show the number of images attached to a post on the image attachment page?

I use the image attachment page to show images attached to a post one by one, in a slideshow sort of affect. I'd like to be able to display the total number of images attached to the parent post and the number of the particular image that's being shown on any given attachment page so you see the picture and the words "Image 3 of 15" for...

Link to first image attachment in a wordpress post

How would I create a text link to the first image attachment page in a wordpress post without trying to figure out what the slug will be after it is published. I realize that I can link the images to their attachment page but I wan't to be able to create a text link. Is this possible? ...

Wordpress themeing

Hi there I am realtively new to wordpress so please bare with, I am creating a custom theme, and so far it is going ok, I current have index.php, header.php, footer.php and sidebar.php I have now hit a bit that has been puzzling me for a couple of days. My home page has a slightly different layout to other pages, how do I theme for th...

Wordpress homepage problem

My wordpress is not setting the front page correctly, I have several pages, all of them static apart from a news page. I have set the home page, by going to settings->reading and then setting the static page I want to be front page. However when I run is_home() it returns false on what I believe to be the homepage. What have I done wr...

Wordpress Custom Field

I wanted to use the custom field for wordpress to have a different header banner for my site here is my code: <?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="BodyWrap"> <!--MAIN CONT--> <div id="mainCont"> <?php get_sidebar(); ?> <div id="rotateBanner"><?php // c...

Wordpress Post # of #

I'm looking for an easy way to assign a post number to each post in wordpress and display it out of the total number of posts. A little info: There will be about 100 "posts", each on its own page I want users to click through each post, so start at post 1 and click "next post" to get to post 2 I want it to say post 4/100 at the top for...

Wordpress Not Publishing Posts To Custom Template

I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the custom...

Remove main editor from wordpress edit page screen

Hi Anyone know of a way to remove the main editor from the page edit screen? And not just with css. I've added a few other meta boxes with the tinymce and they collide with the main one. I have a class that removes other meta boxes from the edit screen, but I cant get rid of the main editor this way. I've tried to add 'divpostrich' and...

How can I limit a wordpress meta_box to a single page?

I need a way to limit the meta box to a single page (ID=84) ... if I do the following it works, but sbumit data does not go through and data is not saved ... add_action('admin_init','violin_init'); function violin_init() { if ($_GET['post'] == '84') { wp_enqueue_style('violin_admin_css', VIOLIN_THEME_PATH . '/custom/met...

What do you prefer ? Writing a Wordpress plugin or child theme ?

What think to be consider when you prefer coding a solution in form of child theme rather then in form of a plugin ? ...

Wordpress: help with posts_nav_link()

I have a page with many items pulled from posts. I have it set up to only display 10 posts at a time, but my previous/next button isn't actually displaying the next or previous posts - it justs keeps displaying the same posts. Here's the function I wrote: function add_shop() { if (is_page('shop') || is_page('7')) { ?> <div id...

Page content bleeding past footer, dynamic resize?

Hey all im learning as i go with editing CSS and PHP and ive manage to put together a layout, looks fine on the main page, but I noticed the content is not stretching properly height wise when i goto click on the 3D gallery. Here is the a link to the page that has the issue: http://www.idreamfx.com/wp/?page_id=36&amp;album=1&amp;gallery...

Implementation/Integration of Email Subscription form for a Wordpress theme

Hi, I would like to get some ideas what's the best way to implement/integrate a Email Subscription Form for a wordpress theme i'm building. The form I'm referring is similar to this (www.babyyu.com) and (smashingmagazine.com). Thanks! ...

Wordpress nav not visible in pages like articles, blog & search

My wordpress*(a custom template)* nav is all working on all of the pages but now I found out that the Main nav doesn't show on this pages All pages e.g. search.php, single.php, index.php, page.php all has <?php get_header(); ?> I really don't know whats wrong. Here is the code for my header.php <?php /** * @package WordPress *...

Wordpress display specific sub category of a parent category.

So here's the scenario, I'm building a theme that would display sub category of a parent post for Food: [Food] ->Hotdog ->Eggs ->Fries for Toys: [Toys] ->Doll ->Car ->Drums for People: [People] ->Mom ->Dad ->Uncle now I don't want to display their parent category, just their subcategory (eg Doll, Car, Drums). I've looked list_cats() ...

What is your Wordpress 2.9 theme development workflow after getting PSD from client?

What are useful and free resources to make Wordpress 2.9 themes? Is Dreamweaver helpful to make themes ? What are time saving tips? I'm using Dreamweaver CS3 on Windows. and my main browser is FF 3.6. I know some extensions of dreamweaver but those are not updated with wordpress versions. Should we edit theme files directly on live ...

Getting plain HTML/CSS versions of Wordpress themes, no PHP?

where can I find elegant looking Wordpress (or not Wordpress, but similar style) themes in plain HTML/CSS format, without all the php? thanks. ...