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

learn more… | top users | synonyms

0
votes
1answer
555 views

How to reverse engineer the Twenty Eleven background image uploader?

I'm searching through the twenty-eleven theme's source files (functions.php and theme-options.php) attempting to get some clues on how to implement the upload utility found on several of the theme ...
2
votes
1answer
842 views

Whats the difference between blog_info('stylesheet_url') difference get_stylesheet_uri()

The question is in the title really. What is the difference between blog_info('stylesheet_url') difference get_stylesheet_uri(), and if it's a case that one is newer then which. The codex says: ...
0
votes
2answers
5k views

Jquery NoConflict Problem

i'm creating a wordpress theme and i am utilizing some scripts that use jQuery. It was working fine, until i enabled a particular plugin, named 'Paid Downloads'. This actually made all of jquery ...
11
votes
2answers
16k views

WordPress Theme Preview Image

I'm developing a custom WordPress theme. When I go to select themes in the Appearance menu, my theme does not have a preview image. Is there something I need to do to get a preview image to show up? I ...
2
votes
4answers
625 views

How to keep theme layout the same when admin gray bar is present?

When I am logged in, there is a gray admin bar on top. My theme layout got distorted by the bar. How to solve the layout problem? Is there a function that can detect user is logged in or not, or use ...
1
vote
1answer
1k views

How to bundle a plugin with a theme, or vice versa

First off, I'm all about separating design and function. In fact, I want to remove some of the functionality from a webcomics management theme I'm developing into a plugin. I expect a person's ...
6
votes
4answers
1k views

Using Bootstrap in themes

Twitter has just came out with a new web framework called Bootstrap. What's the right way to use it within a theme? Update: The stylesheet inclusion is simple indeed. I want to know which caveats or ...
0
votes
1answer
40 views

Inconsistent bloginfo information

I'm doing a little bit of work on a theme I just inherited from another developer. The site just broke, and I'm trying to fix it. You can see the site here: www.bowlingventures.com What's happening ...
6
votes
1answer
944 views

Mini-Site Strategy

I'm working on a project to allow a number of mini-sites within a WordPress multisite installation. Here's how it's supposed to function: The client has a large number of individual locations, each ...
0
votes
2answers
258 views

How can I remove image taxonomy pages from my theme and from Google?

A lot of my theme's image pages are ranking on Google. I'd like to remove these pages entirely from my theme so they no longer rank. When a user hits these image pages the content is taken out of ...
0
votes
2answers
885 views

do_shortcode() in twentyeleven theme

I observed a difference between twentyten and twentyeleven themes. Let me explain with an example: example.com/category/health-beauty/ finds one post containing just a shortcode. If I use twentyten, ...
0
votes
2answers
2k views

MapPress Easy Google Map in Jquery Tabs Problem

I am using MapPress Easy Google Map with the following code in my custom theme: <?php $mymap = new Mappress_Map(array("width" => 600,"height" => 300)); $mypoi_1 = new ...
7
votes
2answers
1k views

Add Caret to Menu Items with Sub-Menus in WordPress Theme

I'm working on a custom theme using wp_nav_menu(). What I want to do is add a caret to menu items that have sub-menus. For example, If my menu looks like this: Menu Item 1 Menu Item 2 Menu Item ...
0
votes
2answers
3k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
0
votes
3answers
500 views

Homepage slider not using correct images

I am currently in the process of starting my first blog. Currently, I am stumped. I have a homepage slider that refuses to work with me. The documentation for the theme I am currently using is ...
0
votes
1answer
1k views

Show post thumbnail only if it exists using timthumb

I am using timthumb as the image size management script throughout my wordpress site but I just noticed that an empty image tag shows up even when there is no thumbnail. <?php ...
2
votes
1answer
876 views

How do I remove RSS feeds from themes?

How do I remove RSS feeds from being listed in the HTML source? Like I want to remove the following: <link rel="alternate" type="application/rss+xml" href="foo.com"> I don't want to remove ...
1
vote
1answer
485 views

How to filter or remove the “title” attribute from category links

I'm placing a list of category links with this code: <div><h2>Categories List</h2> <ul> <?php function ...
0
votes
2answers
599 views

Exclude function from homepage only?

There is a function in a theme that I am using that does some pagination stuff. I do NOT want that function to show up on my home page (only), so I'm trying to set up an if/else statement but can't ...
1
vote
3answers
105 views

How to determine which sidebar the widget has been added to, via widget admin?

In the script below, which resides in a custom widget, I'm trying to determine which sidebar area the widget has been added to because I want to alter the default text depending on which sidebar the ...
1
vote
2answers
178 views

Finding posts containing matching array elements in a meta field usign WP_Query

I have a metafield, that contains a series of options and writes the results to an array in a single meta field: array([0]=>'First', [1]=>'Second', [2]=>'Third', ); I find ...
2
votes
1answer
1k views

How do I get my child-theme to work with my theme's includes folder?

I am using the Canvas WordPress theme (by WooThemes.com) and successfully made a child-theme to override my CSS. However, I would also like to apply the same child-theme principles to my theme's ...
1
vote
3answers
1k views

Custom URL parameters in template files

SETUP I want to pull a query variable from the URL and use it on my single post template (single.php). For example: mysite.com/2011/07/29/testPost/?myvar=someValue To do so, I added the custom query ...
2
votes
1answer
2k views

Why does my short code get executed before other content?

I have the following text in a page. As you can see my shortcode is right at the bottom but somehow when the code runs, the out put of my shortcode is inserted at the top of the page instead of ...
5
votes
4answers
2k views

A way to automatically install pages on theme install?

I'm trying to build a theme which would require specific pages to be included. Is there a way to automatically create pages and assign them to their page templates when a theme is installed?
1
vote
3answers
4k views

Add a #hash to the links in my custom menu

I have created a static frontpage where I load in the content of all my pages. Now I have a normal custom menu, but the links refer to the pages, for example: http://mysite.com/about Now the I want ...
0
votes
1answer
421 views

Extract all shortcode data from post into loop variables?

My client wants to have several pages in which he can edit small, separate parts of a Wordpress page. For example, there is a callout box in the upper left corner. There is also a small piece of ...
1
vote
1answer
697 views

Custom CSS without css.php file

i'm creating and theme and would like the user to be able to select their font family. Typically, i see that people use css.php files and pass user defined variables inside it. I'm a bit concerned of ...
2
votes
1answer
9k views

Creating the modern 'single page' html5 css3 layout in wordpress

I am considering to develop a new portfolio website in the form of a single page website. I do not know if this is a new concept, but I see it becoming popular for portfolio websites, it is also quite ...
1
vote
1answer
346 views

How do I remove TinyMCE text format

I just want to get rid of all the text format options in WP text editor, like H1, H2, etc. Typing the post/page title automatically gives you a H1 heading. It's not good practice to have more than one ...
2
votes
3answers
2k views

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or, more ideally $my_query = ...
0
votes
1answer
3k views

How can I get dynamic content on my static home page

Sorry for this but I am sure this is a duplicate question, but I have been searching, but I cannot find a suitable answer for this question. I hope you still can help. I want to create a website with ...
2
votes
3answers
2k views

How to determine the current widget's parent container (sidebar widget id)

I have several custom widgets that are installed as part of my theme. I'd like to execute conditional code inside each widget's admin panel (not the public side, I'm just interested in the admin panel ...
4
votes
2answers
1k views

How to add Color Picker in Theme Options for the following?

I have a landscaping09 theme. This is what I want: A theme options page with the following options: ->Theme color background change (with colorpicker) or url of the image ->General Navbar color ...
4
votes
2answers
2k views

How to determine if custom menu is active?

My theme registers custom menus with this function: function nav_menus() { if ( function_exists( 'register_nav_menus' ) ) { register_nav_menus( array('main-menu' => __( 'Main ...
1
vote
2answers
56 views

Theme change only in CSS and a few images

We created a theme that has a lot of changes in it. Now we want to enable that theme on our site in different colors, and a few images different: What we're doing is duplicating the theme, and then ...
1
vote
1answer
2k views

Change template dynamically

Is it possible to change the template loaded for a page, as it loads, without having to change the record in the database? I suspect it can be done with the template_redirect action, and the will ...
1
vote
1answer
110 views

Help need making decision. Ads rotating site on wordpress

Okey guys, I am little confused here. I am building a ads rotating site (specifically for jpgs/gif banners) for my client where people can add banners and create code to put in there site. My Plan ...
0
votes
1answer
443 views

How does one go about converting custom post type to post format?

I have a blog which uses custom post type 'aside' for aside posts. Now that wordpress has custom post formats, I want to use the 'aside' post format instead. Is there a way to convert post typess to ...
1
vote
1answer
1k views

Change “Thumbnail”, “Medium” and “Large” image sizes using functions.php?

Right now I'm using add_image_size to create the thumbnail sizes needed for my theme, completely bypassing the options in Settings > Media since I can't depend on users to enter the correct values ...
0
votes
1answer
244 views

Why WordPress developer still using timthumb and what are advantages using them? [duplicate]

Possible Duplicate: What is your take: TimThumb vs. WordPress Thumbnails? The great debate Can you explain to me why timthumb is much better than WP image resizer inside wp core function? ...
1
vote
1answer
1k views

Check if tag, category or author on archive.php

i'm making a wordpress theme and want to use a single archive.php page in order to present posts under a specific author, a category or tag. Now, i'm doing it like : if (is_author()) { } if ...
0
votes
1answer
1k views

How to force unlink on attached/inserted images?

When users insert an image into the content, WordPress automatically wraps the image in a hyperlink that, when clicked, creates an "attachment" page showing only the image inside the theme. Can I ...
1
vote
1answer
97 views

All of my custom posttypes are 404'ing

All of the posts made within custom posttypes have suddenly become uneditable, and will 404 when you try to view them. The posts in the admin panel are greyed out (posts in the standard post/pages ...
6
votes
3answers
5k views

Is it possible to stop selected plugins from loading on certain template pages?

I have a template page that has form on that is only used once in my site. The form uses form validation using jquery validate plugin (such a great plugin). Once the cart66 Plugin is loaded, the form ...
0
votes
2answers
1k views

Is it possible to include an HTML flat-file website inside a WordPress theme?

Is it possible to include an entire flat-file HTML site (.html, folders/ and CSS) inside WordPress? Essentially, I want to host an HTML site, but have access to WP functions and plugins. Not to ...
0
votes
1answer
1k views

how to remove the gallery shortcode in wordpress?

Your `warmHome_cutstr` function causes in the inline stylesheet of the gallery to be displayed. See gallery-post.jpg.[http://themes.trac.wordpress.org/attachment/ticket/4560/gallery-post.jpg][1] To ...
1
vote
3answers
929 views

Finding the paragraphs in content

I am trying to create two functions, one that catches the first paragraph of some content, and one that catches the rest, but I have hit a bit of a conundrum. I have this in my single.php: <div ...
0
votes
2answers
590 views

Dynamic Image Links Depending on Excerpt/'Single Post' View

I'm working on a new Wordpress theme; the default index view displays the excerpts of recent posts. Some posts will be regarding file downloads, and include an image, description, and link to the ...
1
vote
2answers
323 views

Using the theme options to change background

how do I add some options to a theme? I would like to add support, in my thmes, for dinamically changing the page background. I don't even know how to start. I think I can break down this issue in ...