Questions tagged [theme-development]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
253 views

User bar above logotipo?

I am looking for a simple example on how to create a user bar or a simple theme with it that can serve me as example. What I meant is something like we have here on Wordpress Answers if u get above ...
7
votes
5answers
4k views

“Quick Edit” > update clears out my custom meta values

I have two custom meta fields that I've enabled for each post, scottb_customHeader and scottb_customTitle These work fine as long as I'm using the full edit feature to edit posts. However, when I ...
0
votes
3answers
474 views

Add filter on html tags,attributes on specific function in wordpress

Title is little bit :S sorry :) For example,we have paginate links function that output html something like this <span class='page-numbers current'>some number</span> How can I filter ...
1
vote
1answer
177 views

How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?

Often times, a custom theme for Wordpress will require a dynamic content that reflects a relationship to a top level page of a site. Is there a Conditional Tag that will check if the current page is ...
1
vote
2answers
622 views

How to Take Ownership of a Theme

I installed WordPress on my website along with a theme close to what I wanted. I then changed virtually all the formatting to make it conform to my site. I don't plan on publishing my version, but I ...
0
votes
2answers
3k views

How to add testimonials with an image?

Does anybody have an idea how to add testimonials with an image in WordPress? Is there is any plugin that fulfills my requirement? I searched but did not find any. It must support PHP version 4.4.9.
2
votes
1answer
3k views

Featured Image Size

I am in the process of developing a new theme for my blog and am making a featured content slider. The issue that I am having is getting wordpress to force the image to the dimensions that I want it ...
0
votes
2answers
176 views

Dot “.” in option value foobars save options function

My theme options save routine is below. I'm finding that if the $value['id'] being passed from my options array has a period in it, the data does not get passed and the options appear to break at that ...
2
votes
4answers
5k views

How to add (css) classes to only one wp_nav_menu()?

Edit I removed the original Question as this Q has far above 1.000 views now - which means it's important to a lot of people - to show you something that works a) without a custom Walker & b) is ...
1
vote
2answers
408 views

Fancy-box Esay wordpress plugin fails to work on Multilingual site

I have a multi lingual site. On the site I want to display youtube movies using fancybox (or any other equivalent solution) The plugin is installed and set. When checked on the He version - all works ...
0
votes
1answer
316 views

How to use Canonical URL meta tag to avoid duplicate content issues with WP home pages

By default, Wordrpess sites have at least 2 URLs that can be used to reach the home page: www.site.com/ www.site.com/hello-world Both these URLs point to the same page, the default "hello world" ...
0
votes
2answers
738 views

Can I add an icon & function to the “Upload/Insert” toolbar at the top of the content editor?

Is there a built-in filter to add a custom icon and function to the WordPress "Uploads/Insert" toolbar? This is the toolbar that's located just above the content editor. The existing icon I want to ...
2
votes
3answers
1k views

How can you determine whether an image is merely attached or has actually been inserted into a post?

Bear with me. I promise there's a question when I'm done :) In WordPress, you can upload images while editing a post and have the option to insert them into the content (or not). Regardless, the ...
7
votes
2answers
4k views

How to add a checkbox element to attachments editor with example

The code below adds a custom input field to the attachments editor. How can I convert the text input to a checkbox and get/set the value of the checkbox on load and save? Note: "input" => "...
0
votes
1answer
824 views

How to get blog-id of an MU site from functions.php

How can one determine, from functions.php, the blog-id of the site (or alternately, the path to the media directory)?
2
votes
1answer
98 views

How to test for MU via functions.php?

What is the call to determine, from a theme's functions.php whether the site is an MU site or not? Updated with answer: $dir = is_multisite() ? 'wp-content/blogs.dir/'.$current_site->blog_id.'/...
0
votes
2answers
938 views

Where do files uploaded via Media Manager get stored in MU?

Standard WordPress sites, at least of the versions of WP I've tested, store files uploaded via the Media Manager under wp-content/uploads/ Where do these same files get stored in MU sites and how can ...
2
votes
2answers
4k views

How to tell if the user is an admin?

I need to show some info only to admins visiting a page, so I need a conditional tag to identify them. So far I have found: <?php if ( current_user_can('manage_options') ): ?> is this the ...
1
vote
3answers
1k views

single-type.php not working, delivering 404

I've created a custom post type, and have successfully added a few entries. I can call these entries out with query_posts() to show on the front page, but the_permalink() on each of them just sends me ...
31
votes
6answers
24k views

How to detect mobile devices and present them a specific theme?

I would like to create a new modified version of my theme (check my profile if needed) to present to visitors if I detect that they are visiting the site from a hand-held device, like iPhone, Android, ...
2
votes
1answer
482 views

How to list all images in uploads directory except those that are attached to any post

I've got code in my functions.php which parses the WP uploads folder and lists all images it finds there. Is it possible to place a filter here that would exclude any image that is already "attached" ...
0
votes
1answer
124 views

In creating a theme, how can i allow a user to change an image outside post/page content?

I'm creating a theme for a particular WordPress site. There's one spot in the sidebar that displays a photo. The user might want to change the photo once a week. He doesn't want to use FTP to upload ...
2
votes
2answers
294 views

Easy WordPress theme creation tutorial? [closed]

I've been looking for a truly simple wordpress theme creation tutorial and haven't been able to find one. I'm specifically looking for something with sample code, a basic introduction to the syntax, ...
2
votes
1answer
1k views

Doubled titles when using All in One SEO with custom template

I created a separate template, attachment.php, for displaying image attachments. It's relatively simple; basically a stripped down version of single.php. Everything is working great except that when ...
0
votes
1answer
2k views

Make theme settings support multisite enabled (WordPress Mu) site

recently I found a problem is that all custom theme settings written by theme author are not working for a multisite enabled site. I've checked several themes and thought this workaround may help: ...
0
votes
2answers
108 views

How can I tell what category I'm in?

When displaying a category how can I tell what category it is? Say I'm on http://www.example.com/category/quotes, how can I get quotes aside from parsing the URL? I tried get_the_category() but it ...
2
votes
1answer
35 views

retrofiting old blog

I was asked to program out a blog/site. Everything went smoothly using thematic framework. Then I find out that they actually want to switch out themes and basically keep everything from the old site. ...
2
votes
1answer
113 views

How do I obtain the post content via a custom meta box inside the editor?

I have a custom meta box which I would like to use to report on the markup of the current post or page (number of words, number of heading tags, etc). How can I obtain the post content into memory in ...
22
votes
2answers
14k views

How to show a custom meta box on the “Quick Edit” screen?

I've used add_meta_box() to add a custom meta box to the WordPress edit window on both pages and posts. How can I make this meta box also show on the "Quick Edit" screen? Ideally, I'd like it to ...
5
votes
2answers
4k views

Possible to “Attach” images to multiple posts without inserting or uploading twice?

How can I attach images to a post which have already been attached to other posts without having to upload them twice? I don't want to insert the images into the post, I simply want to attach the ...
1
vote
2answers
72 views

How can I alter the display of category listings via sidebar.php?

I would like to alter the default categories widget code so that it does not show any categories which are children of the uncategorized (id=1) category. Can I do this via my sidebar.php or functions....
2
votes
1answer
127 views

Advanced theme training?

I've read a few books on building WP themes and I certainly understand the basics. I would like to know read up on advanced topics like hooks, wp_rewrite and how functions.php should be structured. ...
0
votes
6answers
129 views

Blog page problems

Right, please excuse the stupid question. On my new blog I want the home page to be the "home" page I've created, and not the list of articles... that's fine, I go to Settings -> Reading -> ...
13
votes
2answers
4k views

How can I add a URL field to the attachments window?

For example... add_action('init', 'reg_tax'); function reg_tax() { register_taxonomy_for_object_type('category', 'attachment'); } Adds a "Category" input field to the media manager and ...
1
vote
3answers
158 views

Feature Survey - What would you want in a resume theme?

I've been toying with the idea of developing a custom resume/portfolio theme for some time ... but just haven't gotten around to it. Lately, though, I've fallen in love with a few new site designs ...
14
votes
3answers
3k views

get_template_part vs action hooks in themes

It seems to me both of these afford the opportunity for the end user to modify a theme without actually editing the themes files (via child themes). My question is, is one method preferred over the ...
2
votes
1answer
4k views

Assigning Multiple Layout Designs with Custom Pages in WordPress?

(Moderator's note: This question was previously titled "How to add multiple custom page in wordpress") I am developing a WordPress site and right now I have a custom home page and others are default ...
1
vote
1answer
403 views

Easy lightbox effect inside of dashboard widget

I've got a dashboard widget that pulls from an RSS feed on my central server and allows anyone using my theme to see newly available skins. Using the dashboard widget, I'm currently presenting a ...
1
vote
1answer
969 views

How to enable thumbnails in RSS dashboard widget

I'm successfully using fetch_feed() to display an RSS feed inside a dashboard widget. However, I'm unable to load the thumbnail image from the items in the feed. I'm attempting to do it with the ...
2
votes
2answers
158 views

Displaying Remote Data inside of Theme admin

I would like to add a button under my theme manager which shows a thumbnail listing of available skins (that did not ship with the theme when it was installed). I'd like to feed this listing from a ...
1
vote
1answer
163 views

Add widgets to available widgets section without changing the theme?

I have a client that wants to use a particular theme without modification, but will likely want to have more widgets than are available with a given theme. Is there a way to add widgets to the list ...
1
vote
4answers
2k views

How can I exclude specific authors from wp_list_authors

I want to have the authors listed like usual from wp_list_authors() but I know there are a couple of ones I would like to exclude from the list as well. Is there a way to do that? Thanks
7
votes
3answers
66k views

How to remove search bar from a wordpress theme? [closed]

How to remove search bar from a wordpress theme?
16
votes
3answers
14k views

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two template files (located in the theme folder)? ...
3
votes
2answers
296 views

How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]

Or to make it easier: you just want to disable the caching in order to see your changes in realtime. Any solution that would allow you to disable caching based on IP, logged user or cookie will be ...
0
votes
2answers
579 views

Archives and Categories in Custom Menu

What is the easiest way to place the Archives and Categories lists within my menu under a parent tab. I'd like both of the lists, such as "Archives" leading to the "archives" sub-menu, and the same ...
0
votes
2answers
139 views

Thesis -style Navigation

I am working on a theme where I would like users to be able to select pages to show in the theme options page much like Thesis. I've been Googling / reverse engineering Thesis for a couple hours but ...
2
votes
1answer
1k views

Wordpress theme with multiple color schemes

I am building a WP theme and want to implement multiple color schemes. I looked through different free and premium themes and found out that this feature is developed different ways there and here. ...
0
votes
1answer
81 views

How can I tell WP which file to load by default in Appearance > Editor?

When I navigate to... Appearance > Editor > Edit Themes The default file that gets loaded there is my options.css file (which I don't want anyone editing since it styles my theme options panel, not ...
2
votes
2answers
1k 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 ...