wordpress-theming

query_posts and post thumbnail

Here is my code: $data = array('cat' => '3'); $sliderData = query_posts($data); But I also use custom fields, and post thumbnail, how can I get those? ...

How to make Wordpress function example for html header

How to create a simple Wordpress function in functions.php I want to make a function something like custom_header() and the code in the function is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attrib...

Wordpress 3.0 MultiBlog Theming

I was wondering if Wordpress 3.0 will allow me separate instances of the same theme to customize to my liking? Then I could use these two themes in two separate blogs in that same multiuser Wordpress 3.0 instance? Is this possible? Like could I completely customize the TwentyTen theme and then install another TwentyTen theme under a dif...

Can I distribute third party Images which are under CreativeCommons-Attribution license, with my templates?

I am a template designer and I am often in need of good photos and images to decorate my Templates and Themes. Flickr has images under several types of CreativeCommons licenses (like ShareAlike, NoDerives, Non-Commercial etc) My Question is can I use the Flickr Images which are only under CC-Attribution license to distribute with my Co...

Which wordpress theme framework should I use?

I have decided to use framework to develop my own custom wordpress theme? But I'm confused which one to use? Or should I continue to write all up codes myself. I use 960 as css framework and jQuery as js library. Any help will be cordially appreciated. ...

Where do I place my ad info on this wp theme sidebar.php

This is located in the sidebar.php file for predetermined adspace. I've tried putting the image URL and the link URL in separetely and by generated code, but I get an error every time. This is the code: <div class="box"> <!-- Replace to your affiliate link --> <a href="#"><img src="<?php bloginfo('stylesheet_directory');?>/images/...

Group posts by Date on the front page of wordpress

hey guys.. here is what i am trying to say today is Aug 08, 2010..so what will show is Aug 08, 2010 Post title 1 Post title 2 and so on for the other post for this date Aug 08, 2010 Post title 1 Post title 2 and so on for the other post for this date but i also want to show this only 3 time. so it will show all the post grouped ...

How to sort wordpress pages?

I have created 9 pages which is I ordered from 1-9 what I want is to list or display the pages link from 1-6 and also pages from 7-9 separately in header. My question how can apply this code "SELECT * FROM wp_db WHERE pages <=6" to wordpress? or to apply with this code wp_list_pages or is there another way to code it in wordpress? ...

Adding a second loop to a Wordpress theme on a separate page

I'm trying to add two loops to a theme on two separate pages: home and blog. Blog is basically an index of the posts. It's what most Wordpress pages default to as a home page. To accomplish this I went to "reading settings" and set "front page displays" as 'static' with "front page" set to a Home page I set up in Wordpress pages and "p...

Mamp and wordpress url change

So I had a wordpress installation on my localhost... http://localhost:8888 so I've uploaded the wp files on my FTP, and I've imported the DB.I can't use a new installation because I've edited some core files... I also edited the table wp_options on my site(the web) i've edited the fields, siteurl and home so those two fields, contained ...

Lightbox not working in my wordpress theme

hi all, i have developed a wordpress theme with header, footer, sidebar, index, page, single and 404.php files. Now i want to add a gallery with lightbox effect to my site. i have tried lightbox plus, WP jQuery Lightbox and a few more plugins but none of them seems to work. Can you please help me..? Its really very urgent.... Thanks ...

HTML to WordPress 3 Process

Hi, I am in the process of learning WordPress 3 and have a 5 page HTML website with whole header, sidebar, content and footer, that I would like to convert into a WordPress theme. Can people pls provide some assistance on the best way to do this? Any useful online tutorials that people recommend would also be ideal. Thanks. ...

Help with some jQuery in a Wordpress Loop

I am making a custom archive page, that will display the list of posts with their excerpt, and a button that when clicked toggles the rest of the post content. I have it working with this code, except that it toggles EVERY post content lol because in the loop they all get the class you know what I mean? Can you help me fin a way to do t...

Wordpress get category main name

So if I'm on a subcategory page...how can I get the name of the main category? So let's say I'm on site.com /my-category/my-subcategory/ so how can I get "my-category" ? I don't want to parse the url :) cuz' I think wordpress has a built in function or smth. Best Regards, ...

WordPress 3 on MAMP OS X

Hi, Hoping people can assist me with the following questions re: WordPress 3 on MAMP OS X: 1) Under my installation of MAMP, under the htdocs directory, I have a WordPress site installation, say called Site A. I now want to create a new WordPress site, for Site B, do I need to download a new install of WordPress and then set this up u...

How do I load jQuery for only one specific page in my WordPress theme?

I'm fiddling with a WordPress theme. I'm aware I can use wp_enqueue_script in my header.php to load WordPress's supplied jQuery library. I was just going to use wp_enqueue_script in my header, but it seems inefficient when I only want to use it on a particular Page (just on one single page with a particular page_id.) Given that, what's...

How to restrict biographical info length and content in WordPress?

In WordPress there is Biographical Info under Profile. I would like to prevent the user from exceeding a maximum length of 400 characters. Also, the number of hyperlinks he can place in the biographical info should not exceed three. How do I do that? I am very familiar with JQuery, if that helps in this question. I am just a newbie with ...

Using jQuery's .load() Function within WordPress

Hi, I'm in the process of migrating my HTML website into a WordPress Theme and have the following question: My current HTML website makes full use of jQuery's .load() function, by where I change the content of the page (via a DIV), using .load() based on my side menu options selected by the user. With this, can I still keep this proce...

How to bring in the login & reg forms into my wordpress theme?

I have been doing WordPress themes for a while, but the straight forward ones. Now this new client wants a theme that has the login and reg form in the theme with a lightbox. I have previously seen login forms included in themes so I agreed to that and told him that the reg form cannot be done. Then I saw modernman. They've managed to br...

WordPress 3 - functions.php Queries

Hi, I'm new to WordPress theming and have downloaded the Starker's WP theme from starkers My question is, as this is an updated theme based on new twentyten for WordPress 3.0, do I need all the code in the functions.php file as it all seems to make reference to default twentyten theme? I'm am doing a CMS and was wondering if there is ...