wordpress-theming

How to move the wordpress template style.css file in another folder?

Hi, I would like to follow one of Page Speed's recommendation: Serve static content from a cookieless domain. So I need to move the style.css file away from the default template folder and put it in my cookieless domain. How do I notice wordpress for this change? Thanks. ...

How can I add a "Link Destination" field in the WordPress image attachment editor?

I'm using the WordPress "attachment" feature to allow end users of my theme to upload images that will appear above the post content (not inserted into the post itself). The only problem I have is that there is not a field to allow the end user to specify the link that should be loaded when the end user clicks on one of the attached ima...

Template Dropdown not showing up within Wordpress administrator page

Hello guys, I am working on a Wordpress-based project, and I just added a new template to the installation by uploading a template file. I was creating a new page that will use my new template, when suddenly, the "Template" dropdown in the "Page Attributes" box is gone. I am using Wordpress 3.0.1. Update: I saw a site which told me ...

WP help need help with loops and custom fields

Basically in the left block (the one w/ red boxes) is a product gallery block where it should spit thumbnails of products (the red boxes). the thumbnail is a "custom field" of a product page, the name of the custom field is "gal_thumb" and is link to it's page. At the right side (the one w/ blue box and some text) is a Services Block....

Can jQuery .load append instead of replace?

I have a WordPress install and I'm trying to use jQuery to create a Load More effect. I'm having some trouble using the basic .load feature for page fragments. I don't mind using .get as I saw some threads here regarding that as a better solution. Here's my page URL structure and the contents: First Page: http://example.com/page/1/ Th...

How do I make a gallery in WordPress without using a plugin?

I have created a gallery in a WordPress post using WordPress's native media gallery and it shows me the images as gallery thumbnails in rows and columns which is exactly what I want. But when I click on any of the thumbnail it opens the direct image link. I want that the image should be shown in my blogs environment. I would actually wa...

Wordpress PHP: List categories without links?

Hello, I am using wordpress 3.01, and would like to list a number of child categories within a parent in this format. Without links. { 'cat1' , 'cat2' } Is this possible? http://codex.wordpress.org/Template_Tags/wp_list_categories this call seems like the right one, but I can't figure out how to list them without turning off links Th...

How to alter PHP replace function?

add_filter('wp_list_categories', 'myCatNoBrk', 10, 1); function myCatNoBrk($OrgCat) { $CatNoBrk = preg_replace('/<br \/>/',',',$OrgCat); return $CatNoBrk; } Hello, this is part of a wordpress function that would replace html breaks with commas. How could I alter this to also remove and add 'x' around each element? ...

jQuery not showing Swedish characters correctly

Hi. I wrote a small snippet in jQuery to just put a search word into my searchbox in wordpress, then when clicked to disappear. <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function(){ $j('#s').click(function() { $j(this).val(''); }); ...

How do I Alter this wordpress php to output into an array?

<?php $parent_cat = 57; $child_cats = get_categories('child_of='.$parent_cat); if($child_cats) : echo '{ '; foreach($child_cats as $cat) { echo $sep . $cat->cat_name; $sep = ', '; } echo ' }'; endif; ?> The above code outputs a number of categorys in this format: A Cut Above,A20Labs,AMCH, how would I add ' ' aroun...