Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

2
votes
2answers
823 views

List categories and exclude child categories

The script below creates a listing of the categories in the site (excluding those in "uncategorized"). If possible, I'd like to modify it so that it only lists the top level categories (no child ...
1
vote
1answer
92 views

WP Northwind for Theme Development?

Is there any tool online that can quickly populate a WordPress3 database with faux information to assist in theme development? Perhaps creating 8 categories, inserting a dozen or so posts into each, ...
5
votes
2answers
269 views

Best practice for including plugins as part of a theme?

I'm working on a theme that includes some functionality I've developed as separate plugins (as I'm hoping to release them independently). I'd like to include these plugins as part of the theme core ...
1
vote
2answers
4k views

Strategy to get post meta for use outside the loop

I need to know solutions for the question above. There are cases, when we need post meta information outside the loop. Let's say, I'm developing theme that will display ads from certain vendor on that ...
4
votes
2answers
761 views

Any official way to create an admin theme?

I was wondering whether there's a common way of customising the aspect of the admin panel. I know you can play with the css and js files but what I was looking for is some kind of "admin theme" like ...
4
votes
4answers
2k views

Including CSS and JS on Admin Screen of Custom Theme Options

I am creating a custom theme with a theme options page. I would like to style the options page and do not want to include inline styles. Is there any way to include an external stylesheet from say ...
1
vote
2answers
12k views

How do I make the category template display full posts instead of partial posts?

I'm using Wordpress 3.0.1 with the Twenty Ten theme. I'm trying to change the way the posts in the Category view are displayed (i.e. by going to a url like mywebsite.com/category/mycategory). ...
2
votes
1answer
969 views

Enabling Widgets By Default in Custom Theme Development

In WP theme building, if a sidebar is not active, can I turn it on? Also, if the sidebar is active, and doesn't contain any widgets, can I add some? I'm a theme and plugin developer, but this is ...
1
vote
1answer
113 views

Need advice > converting category assignments to custom post meta values

Before I found out about the ability to add a meta box (with custom post meta selections) to the page and post editor, I was (and still am to a degree) using categories to define custom post meta. ...
1
vote
1answer
323 views

How can I remove specific custom post meta from the “Custom Fields” fieldset?

I've created a custom meta box to handle certain custom post meta fields and I don't want the clutter of having these custom fields duplicated down in the "Custom Fields" area. How can I remove ...
0
votes
2answers
583 views

WordPress 3 botches my Custom Meta Box values on Save

My theme has code that places a custom meta box on the Page editor interface for toggling noindex and/or nofollow attributes to the page. Its a simple little deal with two checkboxes, one says ...
1
vote
2answers
3k views

how to load the language file in plugin?

I'm unable to load the plugin's locale file (.mo). I did all the procedues described in the http://codex.wordpress.org/Writing_a_Plugin but its not working. If I the lang string to the wordpress ...
5
votes
5answers
1k views

Form Submitting Error with get_template_part()

I have come across an interesting problem regarding the get_template_part() . I have created a theme options page (named sitewideSettings.php) normally I would include this in functions.php like so: ...
1
vote
2answers
391 views

How do you apply multiple skins to a site via the “templates” selector using stylesheet switching?

I'm just getting my feet wet with templates and have a few questions. First, Ideally, my templates use the same structure as my main theme, however, they simply use a different stylesheet and images. ...
2
votes
2answers
6k views

Changing the visible url path to css & js files

Does anyone happen to know how I can automatically turn: http://www.domain-name.com/wp-content/themes/theme-name/css/stylesheeet.css into http://www.domain-name.com/css/stylesheet.css Naturally I ...
5
votes
2answers
5k views

Generating CSS Files Dynamically Using PHP Scripts?

As part of my efforts to speed up my themes for my clients I am delivering my CSS via a dynamic PHP file. At the end of the called for example my_theme_css.php: This allows me to add Expiry headers ...
2
votes
1answer
129 views

Are there any Worpdress plugins to change the theme editor?

I've been browsing around a bit, but haven't been able to find any plugins for changing the default theme editor. Currently it's a text area with no syntax highlighting. I'd like something that at ...
1
vote
1answer
788 views

How can I display/hide certain content based on a Theme Option field?

I'm building a Theme Options page for my theme, and I've managed to get most of it working fine. But now I'm trying to show and hide certain parts in my theme based on a simple check box. An example: ...
1
vote
2answers
3k views

How to edit theme functions file to modify pagination?

By default, when adding <!--nextpage-->, the following links are displayed: Pages: 1 2 I need to replace "Pages:" with a graphic arrow which links back to the previous page, and append a ...
2
votes
3answers
351 views

How do I add a post to a menu

I'm trying to get WordPress to highlight a specific item in my menu when a post (any post) is viewed. I'm thinking that adding the post to the menu item, then suppressing display of sub-menus might ...
3
votes
2answers
783 views

Multiple Custom_Background, is it possible?

Is it possible to create multiple "custom background" administration pages? A site I'm doing now needs 2 different background in 2 different areas, I would really love giving my client the same ...
0
votes
1answer
149 views

how or where wordress collect unlogged user session

i see the pattern in some theme where we can collect session of unlogged user. for example, in a comment form: After user commenting, user can see that the their comment is waiting for a moderation. ...
3
votes
4answers
5k views

wp_nav_menu() custom container and container_id

So today I started work on my first Wordpress theme and so far it's been a lot of fun. However, I have had difficulty in getting wp_nav_menu() to do what I want. Here's what I want: <nav ...
1
vote
1answer
139 views

Wordpress Theme Development Seemingly Awful Partitioning of Includes?

I just finished a tutorial that told me to create my header.php without closing a tag at the bottom of the included file. Now while I realize that in anyone of the parent files which includes ...
3
votes
1answer
3k views

Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?

As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection. Is there a plugin (or a ...
2
votes
3answers
86 views

How can I include a post in a theme?

Sometimes it might be necessary to include frequently-changing content in a theme, but themes take some time to modify, it may also be necessary to let a non-technical user maintain some content that ...
0
votes
2answers
194 views

JavaScript Files Registered in Parent Theme Won't Load When Calling wp_enqueue_script() in Child Theme?

I'm making a framework parent theme and in the parent functions.php, I want to register all the possible js files I use frequently and if I want it to load it, in the child functions.php I just have ...
3
votes
1answer
404 views

Setting up partial Right-to-Left admin interface

I am building a custom theme WordPress instance, which needs to be Arabic at the public face and English on Admin site, but with RTL (flush right) in editing fields. My theme takes care of the public ...
5
votes
2answers
6k views

Adding Language Support using .pot and .mo files to a WordPress Theme?

How do we add language support using .pot and .mo files in a WordPress theme? And how we retrieve the theme?
20
votes
4answers
43k views

How do I get the theme URL in PHP?

I need to get the URL of my theme directory to reference an image in the theme's image/headers directory. How is this done in PHP?
29
votes
9answers
6k views

What process do you use for WordPress development?

I'm interested in how other people develop themes and plugins for WordPress. To me, the in-browser editor in the admin panel just doesn't cut it. Currently, I'm just using an IDE with a PHP plugin ...
2
votes
2answers
2k views

Why isn't is_home() working correctly?

I put a if(is_home()) bit in my theme's functions.php and it doesn't seem to work. The function containing this bit is called on init so is_home should work already.
40
votes
2answers
16k views

What is the preferred way to add custom javascript files to the site?

I've already added my scripts, but I wanted to know the preferred way. I just put a <script> tag directly in the header.php of my template. Is there a preferred method of inserting external or ...
1
vote
3answers
11k views

How do register_sidebar() and get_sidebar() work together?

Disclaimer: I am brand spanking new to WP. I am using the Starkers HTML5 framework theme. In the functions.php I see this code: function starkers_widgets_init() { // Area 1, located at the top ...
9
votes
2answers
6k views

How to Link External jQuery/Javascript files with WordPress

So I'm using Starkers to base my next WP theme on and I've run into a small issue, I was including my own version of jQuery in the header.php file but when inspecting my site using Firebug I noticed ...
50
votes
27answers
8k views

Software for WordPress Theme and Plugin Development? [closed]

What software do you use for your WordPress related needs? Please state your OS. On windows XP I use: filezilla (FTP) notepad++ (for reading of PHP / CSS files) firebug (a firefox extension to ...
1
vote
6answers
3k views

How to start learning CSS and theme development?

What would be your suggestions for learning CSS and WordPress theme development ? I have been using WordPress for over 4 years now, but I have never really gotten comfortable with CSS or theme design ...
11
votes
8answers
1k views

Where can I learn to create my own theme?

I want to learn how to create a theme for WordPress. Where can I find information and resources on how to do it?